From 367023eb93095872a9dfac0fd1c6125526f2c2b0 Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Sun, 17 Mar 2024 16:43:55 +0200 Subject: [PATCH 01/67] squash! --- .github/workflows/main.yml | 96 -------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} From a7a065f01dfe67da1870e604fe2cd94333f4dc5b Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Wed, 1 May 2024 02:46:34 +0300 Subject: [PATCH 02/67] squash! --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From e89798c881caae9fbf9cfd91d11f91f02a5c9f87 Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Wed, 1 May 2024 05:13:54 +0300 Subject: [PATCH 03/67] squash! --- .github/dependabot.yml | 14 ++++++++ .github/workflows/Dependabot.yml | 45 +++++++++++++++++++++++++ .github/workflows/GitHub.yml | 57 ++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/Dependabot.yml create mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4b4fcd7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +enable-beta-ecosystems: true + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/__app__" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml new file mode 100644 index 0000000..e6091e5 --- /dev/null +++ b/.github/workflows/Dependabot.yml @@ -0,0 +1,45 @@ +name: Dependabot + +concurrency: + group: Dependabot-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + security-events: write + contents: write + pull-requests: write + +on: + workflow_dispatch: + pull_request: + +jobs: + Approve: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.1.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + Merge: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.1.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml new file mode 100644 index 0000000..0be30ba --- /dev/null +++ b/.github/workflows/GitHub.yml @@ -0,0 +1,57 @@ +name: GitHub + +concurrency: + group: GitHub-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + issues: write + pull-requests: write + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + Assign: + runs-on: ubuntu-latest + + env: + ADBLOCK: true + ASTRO_TELEMETRY_DISABLED: 1 + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 + AZURE_CORE_COLLECT_TELEMETRY: 0 + CHOOSENIM_NO_ANALYTICS: 1 + DIEZ_DO_NOT_TRACK: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 + DO_NOT_TRACK: 1 + ET_NO_TELEMETRY: 1 + GATSBY_TELEMETRY_DISABLED: 1 + GATSBY_TELEMETRY_OPTOUT: 1 + GATSBY_TELEMETRY_OPT_OUT: 1 + GRIT_TELEMETRY_DISABLED: 1 + HASURA_GRAPHQL_ENABLE_TELEMETRY: false + HINT_TELEMETRY: off + HOMEBREW_NO_ANALYTICS: 1 + INFLUXD_REPORTING_DISABLED: true + ITERATIVE_DO_NOT_TRACK: 1 + NEXT_TELEMETRY_DEBUG: 1 + NEXT_TELEMETRY_DISABLED: 1 + NG_CLI_ANALYTICS: false + NUXT_TELEMETRY_DISABLED: 1 + PIN_DO_NOT_TRACK: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + SAM_CLI_TELEMETRY: 0 + STNOUPGRADE: 1 + STRIPE_CLI_TELEMETRY_OPTOUT: 1 + TELEMETRY_DISABLED: 1 + + steps: + - uses: pozil/auto-assign-issue@v1.14.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: NikolaRHristov + numOfAssignee: 1 From cf15d170481075b64aa523b02970d45d5566f588 Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Wed, 1 May 2024 22:53:18 +0300 Subject: [PATCH 04/67] squash! --- .github/dependabot.yml | 14 -------- .github/workflows/Dependabot.yml | 45 ------------------------- .github/workflows/GitHub.yml | 57 -------------------------------- 3 files changed, 116 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/Dependabot.yml delete mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4b4fcd7..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -enable-beta-ecosystems: true - -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "pip" - directory: "/__app__" - schedule: - interval: "daily" - versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml deleted file mode 100644 index e6091e5..0000000 --- a/.github/workflows/Dependabot.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Dependabot - -concurrency: - group: Dependabot-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - security-events: write - contents: write - pull-requests: write - -on: - workflow_dispatch: - pull_request: - -jobs: - Approve: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.1.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - Merge: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.1.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml deleted file mode 100644 index 0be30ba..0000000 --- a/.github/workflows/GitHub.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: GitHub - -concurrency: - group: GitHub-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - issues: write - pull-requests: write - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - Assign: - runs-on: ubuntu-latest - - env: - ADBLOCK: true - ASTRO_TELEMETRY_DISABLED: 1 - AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 - AZURE_CORE_COLLECT_TELEMETRY: 0 - CHOOSENIM_NO_ANALYTICS: 1 - DIEZ_DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - DO_NOT_TRACK: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPTOUT: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GRIT_TELEMETRY_DISABLED: 1 - HASURA_GRAPHQL_ENABLE_TELEMETRY: false - HINT_TELEMETRY: off - HOMEBREW_NO_ANALYTICS: 1 - INFLUXD_REPORTING_DISABLED: true - ITERATIVE_DO_NOT_TRACK: 1 - NEXT_TELEMETRY_DEBUG: 1 - NEXT_TELEMETRY_DISABLED: 1 - NG_CLI_ANALYTICS: false - NUXT_TELEMETRY_DISABLED: 1 - PIN_DO_NOT_TRACK: 1 - POWERSHELL_TELEMETRY_OPTOUT: 1 - SAM_CLI_TELEMETRY: 0 - STNOUPGRADE: 1 - STRIPE_CLI_TELEMETRY_OPTOUT: 1 - TELEMETRY_DISABLED: 1 - - steps: - - uses: pozil/auto-assign-issue@v1.14.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: NikolaRHristov - numOfAssignee: 1 From 61eba1731ab19acedd825a83fc43e58a598a427d Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Thu, 2 May 2024 04:23:10 +0300 Subject: [PATCH 05/67] squash! --- .github/dependabot.yml | 14 ++++++++ .github/workflows/Dependabot.yml | 45 +++++++++++++++++++++++++ .github/workflows/GitHub.yml | 57 ++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/Dependabot.yml create mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4b4fcd7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +enable-beta-ecosystems: true + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/__app__" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml new file mode 100644 index 0000000..e6091e5 --- /dev/null +++ b/.github/workflows/Dependabot.yml @@ -0,0 +1,45 @@ +name: Dependabot + +concurrency: + group: Dependabot-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + security-events: write + contents: write + pull-requests: write + +on: + workflow_dispatch: + pull_request: + +jobs: + Approve: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.1.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + Merge: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.1.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml new file mode 100644 index 0000000..0be30ba --- /dev/null +++ b/.github/workflows/GitHub.yml @@ -0,0 +1,57 @@ +name: GitHub + +concurrency: + group: GitHub-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + issues: write + pull-requests: write + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + Assign: + runs-on: ubuntu-latest + + env: + ADBLOCK: true + ASTRO_TELEMETRY_DISABLED: 1 + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 + AZURE_CORE_COLLECT_TELEMETRY: 0 + CHOOSENIM_NO_ANALYTICS: 1 + DIEZ_DO_NOT_TRACK: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 + DO_NOT_TRACK: 1 + ET_NO_TELEMETRY: 1 + GATSBY_TELEMETRY_DISABLED: 1 + GATSBY_TELEMETRY_OPTOUT: 1 + GATSBY_TELEMETRY_OPT_OUT: 1 + GRIT_TELEMETRY_DISABLED: 1 + HASURA_GRAPHQL_ENABLE_TELEMETRY: false + HINT_TELEMETRY: off + HOMEBREW_NO_ANALYTICS: 1 + INFLUXD_REPORTING_DISABLED: true + ITERATIVE_DO_NOT_TRACK: 1 + NEXT_TELEMETRY_DEBUG: 1 + NEXT_TELEMETRY_DISABLED: 1 + NG_CLI_ANALYTICS: false + NUXT_TELEMETRY_DISABLED: 1 + PIN_DO_NOT_TRACK: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + SAM_CLI_TELEMETRY: 0 + STNOUPGRADE: 1 + STRIPE_CLI_TELEMETRY_OPTOUT: 1 + TELEMETRY_DISABLED: 1 + + steps: + - uses: pozil/auto-assign-issue@v1.14.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: NikolaRHristov + numOfAssignee: 1 From 4d9b0d278edd53e674065f8e5eb18b7bcb95b718 Mon Sep 17 00:00:00 2001 From: "Nikola R. Hristov" Date: Thu, 2 May 2024 23:32:40 +0300 Subject: [PATCH 06/67] squash! --- .coveragerc | 7 - .gitignore | 107 ---- LICENSE | 21 - README.md | 75 --- SECURITY.md | 41 -- __app__/.funcignore | 1 - __app__/.gitignore | 43 -- __app__/__init__.py | 1 - __app__/ghutils/__init__.py | 0 __app__/ghutils/ping.py | 14 - __app__/ghutils/server.py | 21 - __app__/github/__init__.py | 36 -- __app__/github/classify.py | 80 --- __app__/github/closed.py | 22 - __app__/github/function.json | 19 - __app__/github/labels.py | 41 -- __app__/host.json | 7 - __app__/requirements.in | 2 - __app__/requirements.txt | 88 --- dev-requirements.in | 11 - dev-requirements.txt | 261 --------- mypy.ini | 7 - tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 50 files changed, 6373 deletions(-) delete mode 100644 .coveragerc delete mode 100644 .gitignore delete mode 100644 LICENSE delete mode 100644 README.md delete mode 100644 SECURITY.md delete mode 100644 __app__/.funcignore delete mode 100644 __app__/.gitignore delete mode 100644 __app__/__init__.py delete mode 100644 __app__/ghutils/__init__.py delete mode 100644 __app__/ghutils/ping.py delete mode 100644 __app__/ghutils/server.py delete mode 100644 __app__/github/__init__.py delete mode 100644 __app__/github/classify.py delete mode 100644 __app__/github/closed.py delete mode 100644 __app__/github/function.json delete mode 100644 __app__/github/labels.py delete mode 100644 __app__/host.json delete mode 100644 __app__/requirements.in delete mode 100644 __app__/requirements.txt delete mode 100644 dev-requirements.in delete mode 100644 dev-requirements.txt delete mode 100644 mypy.ini delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 8ba58c5..0000000 --- a/.coveragerc +++ /dev/null @@ -1,7 +0,0 @@ -[run] -branch = True -source = - __app__ - -[report] -fail_under = 100 diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 63b7463..0000000 --- a/.gitignore +++ /dev/null @@ -1,107 +0,0 @@ -# Functions -pvscbot*.zip - -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 2107107..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/README.md b/README.md deleted file mode 100644 index 566153a..0000000 --- a/README.md +++ /dev/null @@ -1,75 +0,0 @@ -[![CI](https://github.com/microsoft/pvscbot/workflows/CI/badge.svg?branch=master&event=push "CI status badge")](https://github.com/microsoft/pvscbot/actions?query=branch%3Amaster+event%3Apush+workflow%3ACI) - -# Purpose - -This bot exists to automate the development process/workflow for -https://github.com/microsoft/vscode-python. It also acts as a simple demo of -a GitHub bot running on Azure. - -This bot is what is known as an OAuth app and is not a GitHub app. The -[differences](https://developer.github.com/apps/differences-between-apps/) come -down to simplicity in authentication and how widely can the bot be deployed. Since -this bot is only deployed for a single repository and the original author was -intimately familiar with OAuth apps that was the route taken. - -This bot also predates [GitHub Actions](https://developer.github.com/actions/) -being released. As such some things this bot does may be easier to do as an action. - -Currently the bot will do the following things for you: - -1. Add/remove the `classify` label based on whether any other status label is set. -1. When an issue is closed, remove any status-related labels, e.g. `needs PR` - (with the idea that if an issue is re-opened then it needs to be re-evaluated - as to why the issue is still open). - -# Deployment - -## Generically - -### On the deployment/hosting side - -You must set two environment variables for the bot to function: - -1. `GH_SECRET`: [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). -1. `GH_AUTH`: [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) for the bot to make changes in your repo. - -The [shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) -between GitHub and your bot is used to verify that the webhook payload actually -originated from GitHub for your repository and isn't malicious. This is important -as a malicious user could send fake webhook payloads to your bot and cause it to -make changes on the malicious user's behalf. - -The [personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) -is to empower your bot to make changes to your repo on your behalf. You can use -a token from your personal GitHub account or create a fake bot account. Make sure -the token has the following scopes/permissions: - -1.`repo:public_repo` (if your repo is public; adjust accordingly for your needs) - -### On the GitHub side - -When [creating the webhook](https://developer.github.com/webhooks/creating/) you -need to specify what events to send to your endpoint. This bot supports the -following events: - -1. `Issues` - -## Azure - -The bot is currently written to support -[Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/) -running on Python 3.7. - -# Contributing - -This project welcomes contributions and suggestions. Most contributions require you to agree to a -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us -the rights to use your contribution. For details, visit https://cla.microsoft.com. - -When you submit a pull request, a CLA-bot will automatically determine whether you need to provide -a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions -provided by the bot. You will only need to do this once across all repos using our CLA. - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 8a5d128..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,41 +0,0 @@ - - -## Security - -Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). - -If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)) of a security vulnerability, please report it to us as described below. - -## Reporting Security Issues - -**Please do not report security vulnerabilities through public GitHub issues.** - -Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). - -If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). - -You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). - -Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: - - * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) - * Full paths of source file(s) related to the manifestation of the issue - * The location of the affected source code (tag/branch/commit or direct URL) - * Any special configuration required to reproduce the issue - * Step-by-step instructions to reproduce the issue - * Proof-of-concept or exploit code (if possible) - * Impact of the issue, including how an attacker might exploit the issue - -This information will help us triage your report more quickly. - -If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. - -## Preferred Languages - -We prefer all communications to be in English. - -## Policy - -Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). - - diff --git a/__app__/.funcignore b/__app__/.funcignore deleted file mode 100644 index 8b13789..0000000 --- a/__app__/.funcignore +++ /dev/null @@ -1 +0,0 @@ - diff --git a/__app__/.gitignore b/__app__/.gitignore deleted file mode 100644 index fbbe2ef..0000000 --- a/__app__/.gitignore +++ /dev/null @@ -1,43 +0,0 @@ -bin -obj -csx -.vs -edge -Publish - -*.user -*.suo -*.cscfg -*.Cache -project.lock.json - -/packages -/TestResults - -/tools/NuGet.exe -/App_Data -/secrets -/data -.secrets -appsettings.json -local.settings.json - -node_modules -dist - -# Local python packages -.python_packages/ - -# Python Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class \ No newline at end of file diff --git a/__app__/__init__.py b/__app__/__init__.py deleted file mode 100644 index 8b13789..0000000 --- a/__app__/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/__app__/ghutils/__init__.py b/__app__/ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/__app__/ghutils/ping.py b/__app__/ghutils/ping.py deleted file mode 100644 index a2927c4..0000000 --- a/__app__/ghutils/ping.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing - - -router = gidgethub.routing.Router() - - -@router.register("ping") -async def ping(*args, logger=None, **kwargs): - """Respond to the 'ping' event by doing nothing.""" - if logger: - logger.info("'ping' event received") diff --git a/__app__/ghutils/server.py b/__app__/ghutils/server.py deleted file mode 100644 index ffca514..0000000 --- a/__app__/ghutils/server.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import asyncio - -import gidgethub.sansio - - -async def serve(gh, router, headers, body, *, secret=None, logger=None, pause=1): - """Process the webhook event based on the raw HTTP request.""" - event = gidgethub.sansio.Event.from_http(headers, body, secret=secret) - if logger: - logger.info(f"GitHub delivery ID: {event.delivery_id}") - # Give GitHub some time to reach internal consistency. - await asyncio.sleep(pause) - await router.dispatch(event, gh, logger=logger) - if logger: - try: - logger.info(f"GitHub requests remaining: {gh.rate_limit.remaining}") - except AttributeError: - logger.info("No rate limit data provided") diff --git a/__app__/github/__init__.py b/__app__/github/__init__.py deleted file mode 100644 index d0ea620..0000000 --- a/__app__/github/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -import asyncio -import logging -import os - -import aiohttp -import azure.functions as func -from gidgethub import aiohttp as gh_aiohttp -from gidgethub import routing - -from ..ghutils import ping -from ..ghutils import server -from . import classify, closed - - -router = routing.Router(classify.router, closed.router, ping.router) - -CLIENT_SESSION = None - - -async def main(req: func.HttpRequest) -> func.HttpResponse: - global CLIENT_SESSION - - try: - if CLIENT_SESSION is None: - CLIENT_SESSION = aiohttp.ClientSession() - secret = os.environ.get("GH_SECRET") - oauth_token = os.environ.get("GH_AUTH") - body = req.get_body() - gh = gh_aiohttp.GitHubAPI( - CLIENT_SESSION, "Microsoft/pvscbot", oauth_token=oauth_token - ) - await server.serve(gh, router, req.headers, body, secret=secret, logger=logging) - return func.HttpResponse(status_code=200) - except Exception: - logging.exception("Unhandled exception") - return func.HttpResponse(status_code=500) diff --git a/__app__/github/classify.py b/__app__/github/classify.py deleted file mode 100644 index ad5d144..0000000 --- a/__app__/github/classify.py +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing - -from . import labels - -router = gidgethub.routing.Router() - - -def is_opened(event): - return event.data["issue"]["state"] == "open" - - -def has_classify(event): - return any( - label["name"] == labels.Status.classify.value - for label in event.data["issue"]["labels"] - ) - - -async def add_classify_label(gh, event): - await gh.post( - event.data["issue"]["labels_url"], - data={"labels": [labels.Status.classify.value]}, - ) - - -def classify_unneeded(labels_to_check): - """Determine if an existing label negates needing 'classify'.""" - status_labels = set(labels.STATUS_LABELS) | labels.CLASSIFICATION_LABELS - status_labels.add(labels.Team.data_science.value) - return any(label in status_labels for label in labels_to_check) - - -# Removing 'classify' from closed issues is taken care of in the 'closed' submodule. -@router.register("issues", action="opened") -@router.register("issues", action="reopened") -async def classify_new_issue(event, gh, *args, **kwargs): - """Add the 'classify' label.""" - issue = event.data["issue"] - existing_labels = {label["name"] for label in issue["labels"]} - if classify_unneeded(existing_labels): - # Teammate pre-classified the issue when creating it. - return - async for label in gh.getiter(issue["labels_url"]): - if classify_unneeded({label["name"]}): - # Issue already has a status label. - return - else: - await add_classify_label(gh, event) - - -@router.register("issues", action="labeled") -async def added_label(event, gh, *args, **kwargs): - """Remove 'classify' if it is no longer required.""" - added_label = event.data["label"]["name"] - if not is_opened(event): - return - elif added_label == labels.Status.classify.value: - return - elif has_classify(event): - if classify_unneeded({added_label}): - try: - await gh.delete( - event.data["issue"]["labels_url"], - {"name": labels.Status.classify.value}, - ) - except gidgethub.BadRequest as exc: - if not "Label does not exist" in str(exc): - raise - - -@router.register("issues", action="unlabeled") -async def removed_label(event, gh, *args, **kwargs): - remaining_labels = {label["name"] for label in event.data["issue"]["labels"]} - if not is_opened(event) or classify_unneeded(remaining_labels): - return - else: - await add_classify_label(gh, event) diff --git a/__app__/github/closed.py b/__app__/github/closed.py deleted file mode 100644 index fbf5da8..0000000 --- a/__app__/github/closed.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing - -from . import labels - - -router = gidgethub.routing.Router() - -ALL_STATUS_LABELS = {label.value for label in labels.Status} - - -@router.register("issues", action="closed") -async def remove_status_labels(event, gh, *args, **kwargs): - """Remove all status-related labels.""" - labels = event.data["issue"]["labels"] - labels_url = event.data["issue"]["labels_url"] - for label in labels: - label_name = label["name"] - if label_name in ALL_STATUS_LABELS: - await gh.delete(labels_url, {"name": label_name}) diff --git a/__app__/github/function.json b/__app__/github/function.json deleted file mode 100644 index 9dc8d3f..0000000 --- a/__app__/github/function.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "scriptFile": "__init__.py", - "bindings": [ - { - "authLevel": "function", - "type": "httpTrigger", - "direction": "in", - "name": "req", - "methods": [ - "post" - ] - }, - { - "type": "http", - "direction": "out", - "name": "$return" - } - ] -} diff --git a/__app__/github/labels.py b/__app__/github/labels.py deleted file mode 100644 index e998855..0000000 --- a/__app__/github/labels.py +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import enum - - -@enum.unique -class Status(enum.Enum): - classify = "classify" - triage = "triage" - investigating = "investigating" - needs_upstream_fix = "needs upstream fix" - needs_decision = "needs decision" - needs_spike = "needs spike" - needs_spec = "needs spec" - needs_PR = "needs PR" - experimenting = "experimenting" - - -STATUS_LABELS = frozenset(e.value for e in Status.__members__.values()) - - -@enum.unique -class Classification(enum.Enum): - epic = "Epic" - meta = "meta" - release_plan = "release plan" - - -CLASSIFICATION_LABELS = frozenset(e.value for e in Classification.__members__.values()) - - -@enum.unique -class Skip(enum.Enum): - news = "skip news" - - -@enum.unique -class Team(enum.Enum): - data_science = "data science" - xteam = "xteam" diff --git a/__app__/host.json b/__app__/host.json deleted file mode 100644 index f4458ea..0000000 --- a/__app__/host.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": "2.0", - "extensionBundle": { - "id": "Microsoft.Azure.Functions.ExtensionBundle", - "version": "[1.*, 2.0.0)" - } -} diff --git a/__app__/requirements.in b/__app__/requirements.in deleted file mode 100644 index 77fcca9..0000000 --- a/__app__/requirements.in +++ /dev/null @@ -1,2 +0,0 @@ -gidgethub -aiohttp diff --git a/__app__/requirements.txt b/__app__/requirements.txt deleted file mode 100644 index 75b05ae..0000000 --- a/__app__/requirements.txt +++ /dev/null @@ -1,88 +0,0 @@ -# -# This file is autogenerated by pip-compile -# To update, run: -# -# pip-compile --generate-hashes -# -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 \ - # via aiohttp -attrs==19.3.0 \ - --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ - --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 \ - # via aiohttp -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 \ - # via aiohttp -gidgethub==3.3.0 \ - --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ - --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c \ - # via aiohttp -idna==2.8 \ - --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ - --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c \ - # via idna-ssl, yarl -multidict==4.7.4 \ - --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ - --hash=sha256:26502cefa86d79b86752e96639352c7247846515c864d7c2eb85d036752b643c \ - --hash=sha256:4fba5204d32d5c52439f88437d33ad14b5f228e25072a192453f658bddfe45a7 \ - --hash=sha256:527124ef435f39a37b279653ad0238ff606b58328ca7989a6df372fd75d7fe26 \ - --hash=sha256:5414f388ffd78c57e77bd253cf829373721f450613de53dc85a08e34d806e8eb \ - --hash=sha256:5eee66f882ab35674944dfa0d28b57fa51e160b4dce0ce19e47f495fdae70703 \ - --hash=sha256:63810343ea07f5cd86ba66ab66706243a6f5af075eea50c01e39b4ad6bc3c57a \ - --hash=sha256:6bd10adf9f0d6a98ccc792ab6f83d18674775986ba9bacd376b643fe35633357 \ - --hash=sha256:83c6ddf0add57c6b8a7de0bc7e2d656be3eefeff7c922af9a9aae7e49f225625 \ - --hash=sha256:93166e0f5379cf6cd29746989f8a594fa7204dcae2e9335ddba39c870a287e1c \ - --hash=sha256:9a7b115ee0b9b92d10ebc246811d8f55d0c57e82dbb6a26b23c9a9a6ad40ce0c \ - --hash=sha256:a38baa3046cce174a07a59952c9f876ae8875ef3559709639c17fdf21f7b30dd \ - --hash=sha256:a6d219f49821f4b2c85c6d426346a5d84dab6daa6f85ca3da6c00ed05b54022d \ - --hash=sha256:a8ed33e8f9b67e3b592c56567135bb42e7e0e97417a4b6a771e60898dfd5182b \ - --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ - --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ - --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 \ - # via aiohttp, yarl -typing-extensions==3.7.4.1 \ - --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ - --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ - --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 \ - # via aiohttp -uritemplate==3.0.1 \ - --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ - --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae \ - # via gidgethub -yarl==1.4.2 \ - --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ - --hash=sha256:0ca2f395591bbd85ddd50a82eb1fde9c1066fafe888c5c7cc1d810cf03fd3cc6 \ - --hash=sha256:2098a4b4b9d75ee352807a95cdf5f10180db903bc5b7270715c6bbe2551f64ce \ - --hash=sha256:25e66e5e2007c7a39541ca13b559cd8ebc2ad8fe00ea94a2aad28a9b1e44e5ae \ - --hash=sha256:26d7c90cb04dee1665282a5d1a998defc1a9e012fdca0f33396f81508f49696d \ - --hash=sha256:308b98b0c8cd1dfef1a0311dc5e38ae8f9b58349226aa0533f15a16717ad702f \ - --hash=sha256:3ce3d4f7c6b69c4e4f0704b32eca8123b9c58ae91af740481aa57d7857b5e41b \ - --hash=sha256:58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b \ - --hash=sha256:5b10eb0e7f044cf0b035112446b26a3a2946bca9d7d7edb5e54a2ad2f6652abb \ - --hash=sha256:6faa19d3824c21bcbfdfce5171e193c8b4ddafdf0ac3f129ccf0cdfcb083e462 \ - --hash=sha256:944494be42fa630134bf907714d40207e646fd5a94423c90d5b514f7b0713fea \ - --hash=sha256:a161de7e50224e8e3de6e184707476b5a989037dcb24292b391a3d66ff158e70 \ - --hash=sha256:a4844ebb2be14768f7994f2017f70aca39d658a96c786211be5ddbe1c68794c1 \ - --hash=sha256:c2b509ac3d4b988ae8769901c66345425e361d518aecbe4acbfc2567e416626a \ - --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ - --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ - --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 \ - # via aiohttp diff --git a/dev-requirements.in b/dev-requirements.in deleted file mode 100644 index ade9802..0000000 --- a/dev-requirements.in +++ /dev/null @@ -1,11 +0,0 @@ --r __app__/requirements.txt -azure-functions -# Development -asynctest -black -importlib_resources -mypy -pip-tools -pytest -pytest-cov -pytest-asyncio diff --git a/dev-requirements.txt b/dev-requirements.txt deleted file mode 100644 index 232ea46..0000000 --- a/dev-requirements.txt +++ /dev/null @@ -1,261 +0,0 @@ -# -# This file is autogenerated by pip-compile -# To update, run: -# -# pip-compile --generate-hashes '.\dev-requirements.in' -# -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 -appdirs==1.4.3 \ - --hash=sha256:9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92 \ - --hash=sha256:d8b24664561d0d34ddfaec54636d502d7cea6e29c3eaf68f3df6180863e2166e \ - # via black -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 -asynctest==0.13.0 \ - --hash=sha256:5da6118a7e6d6b54d83a8f7197769d046922a44d2a99c21382f0a6e4fadae676 \ - --hash=sha256:c27862842d15d83e6a34eb0b2866c323880eb3a75e4485b079ea11748fd77fac -atomicwrites==1.3.0 \ - --hash=sha256:03472c30eb2c5d1ba9227e4c2ca66ab8287fbfbbda3888aa93dc2e28fc6811b4 \ - --hash=sha256:75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6 \ - # via pytest -attrs==19.3.0 \ - --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ - --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 -azure-functions==1.0.7 \ - --hash=sha256:88997fbb7e8ff5b36a71cbadee6c8abbce6c4525942a6f997e24d6cf23fac23b \ - --hash=sha256:b65cd543736640d26ff95bfc86438e9c6afade431fa50190334fca757cebf565 -black==19.10b0 \ - --hash=sha256:1b30e59be925fafc1ee4565e5e08abef6b03fe455102883820fe5ee2e4734e0b \ - --hash=sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539 -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 -click==7.0 \ - --hash=sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13 \ - --hash=sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7 \ - # via black, pip-tools -colorama==0.4.3 \ - --hash=sha256:7d73d2a99753107a36ac6b455ee49046802e59d9d076ef8e47b61499fa29afff \ - --hash=sha256:e96da0d330793e2cb9485e9ddfd918d456036c7149416295932478192f4436a1 \ - # via pytest -coverage==5.0.3 \ - --hash=sha256:15cf13a6896048d6d947bf7d222f36e4809ab926894beb748fc9caa14605d9c3 \ - --hash=sha256:1daa3eceed220f9fdb80d5ff950dd95112cd27f70d004c7918ca6dfc6c47054c \ - --hash=sha256:1e44a022500d944d42f94df76727ba3fc0a5c0b672c358b61067abb88caee7a0 \ - --hash=sha256:25dbf1110d70bab68a74b4b9d74f30e99b177cde3388e07cc7272f2168bd1477 \ - --hash=sha256:3230d1003eec018ad4a472d254991e34241e0bbd513e97a29727c7c2f637bd2a \ - --hash=sha256:3dbb72eaeea5763676a1a1efd9b427a048c97c39ed92e13336e726117d0b72bf \ - --hash=sha256:5012d3b8d5a500834783689a5d2292fe06ec75dc86ee1ccdad04b6f5bf231691 \ - --hash=sha256:51bc7710b13a2ae0c726f69756cf7ffd4362f4ac36546e243136187cfcc8aa73 \ - --hash=sha256:527b4f316e6bf7755082a783726da20671a0cc388b786a64417780b90565b987 \ - --hash=sha256:722e4557c8039aad9592c6a4213db75da08c2cd9945320220634f637251c3894 \ - --hash=sha256:76e2057e8ffba5472fd28a3a010431fd9e928885ff480cb278877c6e9943cc2e \ - --hash=sha256:77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef \ - --hash=sha256:7afad9835e7a651d3551eab18cbc0fdb888f0a6136169fbef0662d9cdc9987cf \ - --hash=sha256:9bea19ac2f08672636350f203db89382121c9c2ade85d945953ef3c8cf9d2a68 \ - --hash=sha256:a8b8ac7876bc3598e43e2603f772d2353d9931709345ad6c1149009fd1bc81b8 \ - --hash=sha256:b0840b45187699affd4c6588286d429cd79a99d509fe3de0f209594669bb0954 \ - --hash=sha256:b26aaf69713e5674efbde4d728fb7124e429c9466aeaf5f4a7e9e699b12c9fe2 \ - --hash=sha256:b63dd43f455ba878e5e9f80ba4f748c0a2156dde6e0e6e690310e24d6e8caf40 \ - --hash=sha256:be18f4ae5a9e46edae3f329de2191747966a34a3d93046dbdf897319923923bc \ - --hash=sha256:c312e57847db2526bc92b9bfa78266bfbaabac3fdcd751df4d062cd4c23e46dc \ - --hash=sha256:c60097190fe9dc2b329a0eb03393e2e0829156a589bd732e70794c0dd804258e \ - --hash=sha256:c62a2143e1313944bf4a5ab34fd3b4be15367a02e9478b0ce800cb510e3bbb9d \ - --hash=sha256:cc1109f54a14d940b8512ee9f1c3975c181bbb200306c6d8b87d93376538782f \ - --hash=sha256:cd60f507c125ac0ad83f05803063bed27e50fa903b9c2cfee3f8a6867ca600fc \ - --hash=sha256:d513cc3db248e566e07a0da99c230aca3556d9b09ed02f420664e2da97eac301 \ - --hash=sha256:d649dc0bcace6fcdb446ae02b98798a856593b19b637c1b9af8edadf2b150bea \ - --hash=sha256:d7008a6796095a79544f4da1ee49418901961c97ca9e9d44904205ff7d6aa8cb \ - --hash=sha256:da93027835164b8223e8e5af2cf902a4c80ed93cb0909417234f4a9df3bcd9af \ - --hash=sha256:e69215621707119c6baf99bda014a45b999d37602cb7043d943c76a59b05bf52 \ - --hash=sha256:ea9525e0fef2de9208250d6c5aeeee0138921057cd67fcef90fbed49c4d62d37 \ - --hash=sha256:fca1669d464f0c9831fd10be2eef6b86f5ebd76c724d1e0706ebdff86bb4adf0 \ - # via pytest-cov -gidgethub==3.3.0 \ - --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ - --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c -idna==2.8 \ - --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ - --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c -importlib-metadata==1.4.0 \ - --hash=sha256:bdd9b7c397c273bcc9a11d6629a38487cd07154fa255a467bf704cd2c258e359 \ - --hash=sha256:f17c015735e1a88296994c0697ecea7e11db24290941983b08c9feb30921e6d8 \ - # via pluggy, pytest -importlib-resources==1.0.2 \ - --hash=sha256:6e2783b2538bd5a14678284a3962b0660c715e5a0f10243fd5e00a4b5974f50b \ - --hash=sha256:d3279fd0f6f847cced9f7acc19bd3e5df54d34f93a2e7bb5f238f81545787078 -more-itertools==8.1.0 \ - --hash=sha256:1a2a32c72400d365000412fe08eb4a24ebee89997c18d3d147544f70f5403b39 \ - --hash=sha256:c468adec578380b6281a114cb8a5db34eb1116277da92d7c46f904f0b52d3288 \ - # via pytest -multidict==4.7.4 \ - --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ - --hash=sha256:26502cefa86d79b86752e96639352c7247846515c864d7c2eb85d036752b643c \ - --hash=sha256:4fba5204d32d5c52439f88437d33ad14b5f228e25072a192453f658bddfe45a7 \ - --hash=sha256:527124ef435f39a37b279653ad0238ff606b58328ca7989a6df372fd75d7fe26 \ - --hash=sha256:5414f388ffd78c57e77bd253cf829373721f450613de53dc85a08e34d806e8eb \ - --hash=sha256:5eee66f882ab35674944dfa0d28b57fa51e160b4dce0ce19e47f495fdae70703 \ - --hash=sha256:63810343ea07f5cd86ba66ab66706243a6f5af075eea50c01e39b4ad6bc3c57a \ - --hash=sha256:6bd10adf9f0d6a98ccc792ab6f83d18674775986ba9bacd376b643fe35633357 \ - --hash=sha256:83c6ddf0add57c6b8a7de0bc7e2d656be3eefeff7c922af9a9aae7e49f225625 \ - --hash=sha256:93166e0f5379cf6cd29746989f8a594fa7204dcae2e9335ddba39c870a287e1c \ - --hash=sha256:9a7b115ee0b9b92d10ebc246811d8f55d0c57e82dbb6a26b23c9a9a6ad40ce0c \ - --hash=sha256:a38baa3046cce174a07a59952c9f876ae8875ef3559709639c17fdf21f7b30dd \ - --hash=sha256:a6d219f49821f4b2c85c6d426346a5d84dab6daa6f85ca3da6c00ed05b54022d \ - --hash=sha256:a8ed33e8f9b67e3b592c56567135bb42e7e0e97417a4b6a771e60898dfd5182b \ - --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ - --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ - --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 -mypy-extensions==0.4.3 \ - --hash=sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d \ - --hash=sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8 \ - # via mypy -mypy==0.761 \ - --hash=sha256:0a9a45157e532da06fe56adcfef8a74629566b607fa2c1ac0122d1ff995c748a \ - --hash=sha256:2c35cae79ceb20d47facfad51f952df16c2ae9f45db6cb38405a3da1cf8fc0a7 \ - --hash=sha256:4b9365ade157794cef9685791032521233729cb00ce76b0ddc78749abea463d2 \ - --hash=sha256:53ea810ae3f83f9c9b452582261ea859828a9ed666f2e1ca840300b69322c474 \ - --hash=sha256:634aef60b4ff0f650d3e59d4374626ca6153fcaff96ec075b215b568e6ee3cb0 \ - --hash=sha256:7e396ce53cacd5596ff6d191b47ab0ea18f8e0ec04e15d69728d530e86d4c217 \ - --hash=sha256:7eadc91af8270455e0d73565b8964da1642fe226665dd5c9560067cd64d56749 \ - --hash=sha256:7f672d02fffcbace4db2b05369142e0506cdcde20cea0e07c7c2171c4fd11dd6 \ - --hash=sha256:85baab8d74ec601e86134afe2bcccd87820f79d2f8d5798c889507d1088287bf \ - --hash=sha256:87c556fb85d709dacd4b4cb6167eecc5bbb4f0a9864b69136a0d4640fdc76a36 \ - --hash=sha256:a6bd44efee4dc8c3324c13785a9dc3519b3ee3a92cada42d2b57762b7053b49b \ - --hash=sha256:c6d27bd20c3ba60d5b02f20bd28e20091d6286a699174dfad515636cb09b5a72 \ - --hash=sha256:e2bb577d10d09a2d8822a042a23b8d62bc3b269667c9eb8e60a6edfa000211b1 \ - --hash=sha256:f97a605d7c8bc2c6d1172c2f0d5a65b24142e11a58de689046e62c2d632ca8c1 -packaging==20.1 \ - --hash=sha256:170748228214b70b672c581a3dd610ee51f733018650740e98c7df862a583f73 \ - --hash=sha256:e665345f9eef0c621aa0bf2f8d78cf6d21904eef16a93f020240b704a57f1334 \ - # via pytest -pathspec==0.7.0 \ - --hash=sha256:163b0632d4e31cef212976cf57b43d9fd6b0bac6e67c26015d611a647d5e7424 \ - --hash=sha256:562aa70af2e0d434367d9790ad37aed893de47f1693e4201fd1d3dca15d19b96 \ - # via black -pip-tools==4.4.0 \ - --hash=sha256:636efb9e3d3be0275a9089b5796494ba6d5fe2be37e878d3516a0ac6e64a9179 \ - --hash=sha256:da39692c36c1e66bc5fec078500225586a465f90c07287e9e48eb44f11a978b2 -pluggy==0.13.1 \ - --hash=sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0 \ - --hash=sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d \ - # via pytest -py==1.8.1 \ - --hash=sha256:5e27081401262157467ad6e7f851b7aa402c5852dbcb3dae06768434de5752aa \ - --hash=sha256:c20fdd83a5dbc0af9efd622bee9a5564e278f6380fffcacc43ba6f43db2813b0 \ - # via pytest -pyparsing==2.4.6 \ - --hash=sha256:4c830582a84fb022400b85429791bc551f1f4871c33f23e44f353119e92f969f \ - --hash=sha256:c342dccb5250c08d45fd6f8b4a559613ca603b57498511740e65cd11a2e7dcec \ - # via packaging -pytest-asyncio==0.10.0 \ - --hash=sha256:9fac5100fd716cbecf6ef89233e8590a4ad61d729d1732e0a96b84182df1daaf \ - --hash=sha256:d734718e25cfc32d2bf78d346e99d33724deeba774cc4afdf491530c6184b63b -pytest-cov==2.8.1 \ - --hash=sha256:cc6742d8bac45070217169f5f72ceee1e0e55b0221f54bcf24845972d3a47f2b \ - --hash=sha256:cdbdef4f870408ebdbfeb44e63e07eb18bb4619fae852f6e760645fa36172626 -pytest==5.3.4 \ - --hash=sha256:1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600 \ - --hash=sha256:c13d1943c63e599b98cf118fcb9703e4d7bde7caa9a432567bcdcae4bf512d20 -regex==2020.1.8 \ - --hash=sha256:07b39bf943d3d2fe63d46281d8504f8df0ff3fe4c57e13d1656737950e53e525 \ - --hash=sha256:0932941cdfb3afcbc26cc3bcf7c3f3d73d5a9b9c56955d432dbf8bbc147d4c5b \ - --hash=sha256:0e182d2f097ea8549a249040922fa2b92ae28be4be4895933e369a525ba36576 \ - --hash=sha256:10671601ee06cf4dc1bc0b4805309040bb34c9af423c12c379c83d7895622bb5 \ - --hash=sha256:23e2c2c0ff50f44877f64780b815b8fd2e003cda9ce817a7fd00dea5600c84a0 \ - --hash=sha256:26ff99c980f53b3191d8931b199b29d6787c059f2e029b2b0c694343b1708c35 \ - --hash=sha256:27429b8d74ba683484a06b260b7bb00f312e7c757792628ea251afdbf1434003 \ - --hash=sha256:3e77409b678b21a056415da3a56abfd7c3ad03da71f3051bbcdb68cf44d3c34d \ - --hash=sha256:4e8f02d3d72ca94efc8396f8036c0d3bcc812aefc28ec70f35bb888c74a25161 \ - --hash=sha256:4eae742636aec40cf7ab98171ab9400393360b97e8f9da67b1867a9ee0889b26 \ - --hash=sha256:6a6ae17bf8f2d82d1e8858a47757ce389b880083c4ff2498dba17c56e6c103b9 \ - --hash=sha256:6a6ba91b94427cd49cd27764679024b14a96874e0dc638ae6bdd4b1a3ce97be1 \ - --hash=sha256:7bcd322935377abcc79bfe5b63c44abd0b29387f267791d566bbb566edfdd146 \ - --hash=sha256:98b8ed7bb2155e2cbb8b76f627b2fd12cf4b22ab6e14873e8641f266e0fb6d8f \ - --hash=sha256:bd25bb7980917e4e70ccccd7e3b5740614f1c408a642c245019cff9d7d1b6149 \ - --hash=sha256:d0f424328f9822b0323b3b6f2e4b9c90960b24743d220763c7f07071e0778351 \ - --hash=sha256:d58e4606da2a41659c84baeb3cfa2e4c87a74cec89a1e7c56bee4b956f9d7461 \ - --hash=sha256:e3cd21cc2840ca67de0bbe4071f79f031c81418deb544ceda93ad75ca1ee9f7b \ - --hash=sha256:e6c02171d62ed6972ca8631f6f34fa3281d51db8b326ee397b9c83093a6b7242 \ - --hash=sha256:e7c7661f7276507bce416eaae22040fd91ca471b5b33c13f8ff21137ed6f248c \ - --hash=sha256:ecc6de77df3ef68fee966bb8cb4e067e84d4d1f397d0ef6fce46913663540d77 \ - # via black -six==1.14.0 \ - --hash=sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a \ - --hash=sha256:8f3cd2e254d8f793e7f3d6d9df77b92252b52637291d0f0da013c76ea2724b6c \ - # via packaging, pip-tools -toml==0.10.0 \ - --hash=sha256:229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c \ - --hash=sha256:235682dd292d5899d361a811df37e04a8828a5b1da3115886b73cf81ebc9100e \ - # via black -typed-ast==1.4.1 \ - --hash=sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355 \ - --hash=sha256:0c2c07682d61a629b68433afb159376e24e5b2fd4641d35424e462169c0a7919 \ - --hash=sha256:249862707802d40f7f29f6e1aad8d84b5aa9e44552d2cc17384b209f091276aa \ - --hash=sha256:24995c843eb0ad11a4527b026b4dde3da70e1f2d8806c99b7b4a7cf491612652 \ - --hash=sha256:269151951236b0f9a6f04015a9004084a5ab0d5f19b57de779f908621e7d8b75 \ - --hash=sha256:4083861b0aa07990b619bd7ddc365eb7fa4b817e99cf5f8d9cf21a42780f6e01 \ - --hash=sha256:498b0f36cc7054c1fead3d7fc59d2150f4d5c6c56ba7fb150c013fbc683a8d2d \ - --hash=sha256:4e3e5da80ccbebfff202a67bf900d081906c358ccc3d5e3c8aea42fdfdfd51c1 \ - --hash=sha256:6daac9731f172c2a22ade6ed0c00197ee7cc1221aa84cfdf9c31defeb059a907 \ - --hash=sha256:715ff2f2df46121071622063fc7543d9b1fd19ebfc4f5c8895af64a77a8c852c \ - --hash=sha256:73d785a950fc82dd2a25897d525d003f6378d1cb23ab305578394694202a58c3 \ - --hash=sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b \ - --hash=sha256:8ce678dbaf790dbdb3eba24056d5364fb45944f33553dd5869b7580cdbb83614 \ - --hash=sha256:aaee9905aee35ba5905cfb3c62f3e83b3bec7b39413f0a7f19be4e547ea01ebb \ - --hash=sha256:bcd3b13b56ea479b3650b82cabd6b5343a625b0ced5429e4ccad28a8973f301b \ - --hash=sha256:c9e348e02e4d2b4a8b2eedb48210430658df6951fa484e59de33ff773fbd4b41 \ - --hash=sha256:d205b1b46085271b4e15f670058ce182bd1199e56b317bf2ec004b6a44f911f6 \ - --hash=sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34 \ - --hash=sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe \ - --hash=sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4 \ - --hash=sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7 \ - # via black, mypy -typing-extensions==3.7.4.1 \ - --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ - --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ - --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 -uritemplate==3.0.1 \ - --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ - --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae -wcwidth==0.1.8 \ - --hash=sha256:8fd29383f539be45b20bd4df0dc29c20ba48654a41e661925e612311e9f3c603 \ - --hash=sha256:f28b3e8a6483e5d49e7f8949ac1a78314e740333ae305b4ba5defd3e74fb37a8 \ - # via pytest -yarl==1.4.2 \ - --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ - --hash=sha256:0ca2f395591bbd85ddd50a82eb1fde9c1066fafe888c5c7cc1d810cf03fd3cc6 \ - --hash=sha256:2098a4b4b9d75ee352807a95cdf5f10180db903bc5b7270715c6bbe2551f64ce \ - --hash=sha256:25e66e5e2007c7a39541ca13b559cd8ebc2ad8fe00ea94a2aad28a9b1e44e5ae \ - --hash=sha256:26d7c90cb04dee1665282a5d1a998defc1a9e012fdca0f33396f81508f49696d \ - --hash=sha256:308b98b0c8cd1dfef1a0311dc5e38ae8f9b58349226aa0533f15a16717ad702f \ - --hash=sha256:3ce3d4f7c6b69c4e4f0704b32eca8123b9c58ae91af740481aa57d7857b5e41b \ - --hash=sha256:58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b \ - --hash=sha256:5b10eb0e7f044cf0b035112446b26a3a2946bca9d7d7edb5e54a2ad2f6652abb \ - --hash=sha256:6faa19d3824c21bcbfdfce5171e193c8b4ddafdf0ac3f129ccf0cdfcb083e462 \ - --hash=sha256:944494be42fa630134bf907714d40207e646fd5a94423c90d5b514f7b0713fea \ - --hash=sha256:a161de7e50224e8e3de6e184707476b5a989037dcb24292b391a3d66ff158e70 \ - --hash=sha256:a4844ebb2be14768f7994f2017f70aca39d658a96c786211be5ddbe1c68794c1 \ - --hash=sha256:c2b509ac3d4b988ae8769901c66345425e361d518aecbe4acbfc2567e416626a \ - --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ - --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ - --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 -zipp==2.1.0 \ - --hash=sha256:ccc94ed0909b58ffe34430ea5451f07bc0c76467d7081619a454bf5c98b89e28 \ - --hash=sha256:feae2f18633c32fc71f2de629bfb3bd3c9325cd4419642b1f1da42ee488d9b98 \ - # via importlib-metadata diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index 765bcbb..0000000 --- a/mypy.ini +++ /dev/null @@ -1,7 +0,0 @@ -[mypy] -warn_return_any = True -warn_unused_configs = True -warn_unused_ignores = True - -[mypy-azure.*] -ignore_missing_imports = True diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 441ec7ba2a2321681c8754c172e765302b2b38c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 May 2024 17:39:57 +0000 Subject: [PATCH 07/67] Bump aiohttp from 3.6.2 to 3.9.4 in /__app__ Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.6.2 to 3.9.4. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.6.2...v3.9.4) --- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- __app__/requirements.txt | 207 ++++++++++++++++++++++++++++++++------- 1 file changed, 172 insertions(+), 35 deletions(-) diff --git a/__app__/requirements.txt b/__app__/requirements.txt index 75b05ae..caccad6 100644 --- a/__app__/requirements.txt +++ b/__app__/requirements.txt @@ -4,41 +4,181 @@ # # pip-compile --generate-hashes # -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 \ +aiohttp==3.9.4 \ + --hash=sha256:0593822dcdb9483d41f12041ff7c90d4d1033ec0e880bcfaf102919b715f47f1 \ + --hash=sha256:10afd99b8251022ddf81eaed1d90f5a988e349ee7d779eb429fb07b670751e8c \ + --hash=sha256:17e7c051f53a0d2ebf33013a9cbf020bb4e098c4bc5bce6f7b0c962108d97eab \ + --hash=sha256:221204dbda5ef350e8db6287937621cf75e85778b296c9c52260b522231940ed \ + --hash=sha256:2506d9f7a9b91033201be9ffe7d89c6a54150b0578803cce5cb84a943d075bc3 \ + --hash=sha256:268ba22d917655d1259af2d5659072b7dc11b4e1dc2cb9662fdd867d75afc6a4 \ + --hash=sha256:2bd9d334412961125e9f68d5b73c1d0ab9ea3f74a58a475e6b119f5293eee7ba \ + --hash=sha256:305edae1dea368ce09bcb858cf5a63a064f3bff4767dec6fa60a0cc0e805a1d3 \ + --hash=sha256:32dc814ddbb254f6170bca198fe307920f6c1308a5492f049f7f63554b88ef36 \ + --hash=sha256:35d78076736f4a668d57ade00c65d30a8ce28719d8a42471b2a06ccd1a2e3063 \ + --hash=sha256:3b2feaf1b7031ede1bc0880cec4b0776fd347259a723d625357bb4b82f62687b \ + --hash=sha256:418bb0038dfafeac923823c2e63226179976c76f981a2aaad0ad5d51f2229bca \ + --hash=sha256:419f009fa4cfde4d16a7fc070d64f36d70a8d35a90d71aa27670bba2be4fd039 \ + --hash=sha256:47f6eb74e1ecb5e19a78f4a4228aa24df7fbab3b62d4a625d3f41194a08bd54f \ + --hash=sha256:4d79aad0ad4b980663316f26d9a492e8fab2af77c69c0f33780a56843ad2f89e \ + --hash=sha256:4f7e69a7fd4b5ce419238388e55abd220336bd32212c673ceabc57ccf3d05b55 \ + --hash=sha256:52b8b4e06fc15519019e128abedaeb56412b106ab88b3c452188ca47a25c4093 \ + --hash=sha256:56181093c10dbc6ceb8a29dfeea1e815e1dfdc020169203d87fd8d37616f73f9 \ + --hash=sha256:63f41a909d182d2b78fe3abef557fcc14da50c7852f70ae3be60e83ff64edba5 \ + --hash=sha256:689eb4356649ec9535b3686200b231876fb4cab4aca54e3bece71d37f50c1d13 \ + --hash=sha256:69046cd9a2a17245c4ce3c1f1a4ff8c70c7701ef222fce3d1d8435f09042bba1 \ + --hash=sha256:69b97aa5792428f321f72aeb2f118e56893371f27e0b7d05750bcad06fc42ca1 \ + --hash=sha256:69ff36d3f8f5652994e08bd22f093e11cfd0444cea310f92e01b45a4e46b624e \ + --hash=sha256:6f121900131d116e4a93b55ab0d12ad72573f967b100e49086e496a9b24523ea \ + --hash=sha256:6ff71ede6d9a5a58cfb7b6fffc83ab5d4a63138276c771ac91ceaaddf5459644 \ + --hash=sha256:71a8f241456b6c2668374d5d28398f8e8cdae4cce568aaea54e0f39359cd928d \ + --hash=sha256:74e4e48c8752d14ecfb36d2ebb3d76d614320570e14de0a3aa7a726ff150a03c \ + --hash=sha256:7673a76772bda15d0d10d1aa881b7911d0580c980dbd16e59d7ba1422b2d83cd \ + --hash=sha256:76d32588ef7e4a3f3adff1956a0ba96faabbdee58f2407c122dd45aa6e34f372 \ + --hash=sha256:7b39476ee69cfe64061fd77a73bf692c40021f8547cda617a3466530ef63f947 \ + --hash=sha256:7be99f4abb008cb38e144f85f515598f4c2c8932bf11b65add0ff59c9c876d99 \ + --hash=sha256:7bfdb41dc6e85d8535b00d73947548a748e9534e8e4fddd2638109ff3fb081df \ + --hash=sha256:7d2334e387b2adcc944680bebcf412743f2caf4eeebd550f67249c1c3696be04 \ + --hash=sha256:7d29dd5319d20aa3b7749719ac9685fbd926f71ac8c77b2477272725f882072d \ + --hash=sha256:7d4845f8501ab28ebfdbeab980a50a273b415cf69e96e4e674d43d86a464df9d \ + --hash=sha256:824dff4f9f4d0f59d0fa3577932ee9a20e09edec8a2f813e1d6b9f89ced8293f \ + --hash=sha256:84e90494db7df3be5e056f91412f9fa9e611fbe8ce4aaef70647297f5943b276 \ + --hash=sha256:8a78dfb198a328bfb38e4308ca8167028920fb747ddcf086ce706fbdd23b2926 \ + --hash=sha256:8b73a06bafc8dcc508420db43b4dd5850e41e69de99009d0351c4f3007960019 \ + --hash=sha256:916b0417aeddf2c8c61291238ce25286f391a6acb6f28005dd9ce282bd6311b6 \ + --hash=sha256:935c369bf8acc2dc26f6eeb5222768aa7c62917c3554f7215f2ead7386b33748 \ + --hash=sha256:939393e8c3f0a5bcd33ef7ace67680c318dc2ae406f15e381c0054dd658397de \ + --hash=sha256:9860d455847cd98eb67897f5957b7cd69fbcb436dd3f06099230f16a66e66f79 \ + --hash=sha256:9b6787b6d0b3518b2ee4cbeadd24a507756ee703adbac1ab6dc7c4434b8c572a \ + --hash=sha256:9c0b09d76e5a4caac3d27752027fbd43dc987b95f3748fad2b924a03fe8632ad \ + --hash=sha256:a1885d2470955f70dfdd33a02e1749613c5a9c5ab855f6db38e0b9389453dce7 \ + --hash=sha256:a3666cf4182efdb44d73602379a66f5fdfd5da0db5e4520f0ac0dcca644a3497 \ + --hash=sha256:aba80e77c227f4234aa34a5ff2b6ff30c5d6a827a91d22ff6b999de9175d71bd \ + --hash=sha256:b33f34c9c7decdb2ab99c74be6443942b730b56d9c5ee48fb7df2c86492f293c \ + --hash=sha256:b65b0f8747b013570eea2f75726046fa54fa8e0c5db60f3b98dd5d161052004a \ + --hash=sha256:b71e614c1ae35c3d62a293b19eface83d5e4d194e3eb2fabb10059d33e6e8cbf \ + --hash=sha256:c111b3c69060d2bafc446917534150fd049e7aedd6cbf21ba526a5a97b4402a5 \ + --hash=sha256:c3770365675f6be220032f6609a8fbad994d6dcf3ef7dbcf295c7ee70884c9af \ + --hash=sha256:c4870cb049f10d7680c239b55428916d84158798eb8f353e74fa2c98980dcc0b \ + --hash=sha256:c5ff8ff44825736a4065d8544b43b43ee4c6dd1530f3a08e6c0578a813b0aa35 \ + --hash=sha256:c78700130ce2dcebb1a8103202ae795be2fa8c9351d0dd22338fe3dac74847d9 \ + --hash=sha256:c7a5b676d3c65e88b3aca41816bf72831898fcd73f0cbb2680e9d88e819d1e4d \ + --hash=sha256:c8b04a3dbd54de6ccb7604242fe3ad67f2f3ca558f2d33fe19d4b08d90701a89 \ + --hash=sha256:d12a244627eba4e9dc52cbf924edef905ddd6cafc6513849b4876076a6f38b0e \ + --hash=sha256:d1df528a85fb404899d4207a8d9934cfd6be626e30e5d3a5544a83dbae6d8a7e \ + --hash=sha256:d58a54d6ff08d2547656356eea8572b224e6f9bbc0cf55fa9966bcaac4ddfb10 \ + --hash=sha256:d6577140cd7db19e430661e4b2653680194ea8c22c994bc65b7a19d8ec834403 \ + --hash=sha256:d6a67e26daa686a6fbdb600a9af8619c80a332556245fa8e86c747d226ab1a1e \ + --hash=sha256:dcad56c8d8348e7e468899d2fb3b309b9bc59d94e6db08710555f7436156097f \ + --hash=sha256:e0198ea897680e480845ec0ffc5a14e8b694e25b3f104f63676d55bf76a82f1a \ + --hash=sha256:e27d3b5ed2c2013bce66ad67ee57cbf614288bda8cdf426c8d8fe548316f1b5f \ + --hash=sha256:e40d2cd22914d67c84824045861a5bb0fb46586b15dfe4f046c7495bf08306b2 \ + --hash=sha256:e4370dda04dc8951012f30e1ce7956a0a226ac0714a7b6c389fb2f43f22a250e \ + --hash=sha256:e571fdd9efd65e86c6af2f332e0e95dad259bfe6beb5d15b3c3eca3a6eb5d87b \ + --hash=sha256:e78da6b55275987cbc89141a1d8e75f5070e577c482dd48bd9123a76a96f0bbb \ + --hash=sha256:eae569fb1e7559d4f3919965617bb39f9e753967fae55ce13454bec2d1c54f09 \ + --hash=sha256:eb30c4510a691bb87081192a394fb661860e75ca3896c01c6d186febe7c88530 \ + --hash=sha256:efbdd51872cf170093998c87ccdf3cb5993add3559341a8e5708bcb311934c94 \ + --hash=sha256:f3460a92638dce7e47062cf088d6e7663adb135e936cb117be88d5e6c48c9d53 \ + --hash=sha256:f595db1bceabd71c82e92df212dd9525a8a2c6947d39e3c994c4f27d2fe15b11 \ + --hash=sha256:fb68dc73bc8ac322d2e392a59a9e396c4f35cb6fdbdd749e139d1d6c985f2527 + # via -r requirements.in +aiosignal==1.3.1 \ + --hash=sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc \ + --hash=sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17 # via aiohttp attrs==19.3.0 \ --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ - --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 \ - # via aiohttp -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 \ + --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 # via aiohttp +frozenlist==1.4.1 \ + --hash=sha256:04ced3e6a46b4cfffe20f9ae482818e34eba9b5fb0ce4056e4cc9b6e212d09b7 \ + --hash=sha256:0633c8d5337cb5c77acbccc6357ac49a1770b8c487e5b3505c57b949b4b82e98 \ + --hash=sha256:068b63f23b17df8569b7fdca5517edef76171cf3897eb68beb01341131fbd2ad \ + --hash=sha256:0c250a29735d4f15321007fb02865f0e6b6a41a6b88f1f523ca1596ab5f50bd5 \ + --hash=sha256:1979bc0aeb89b33b588c51c54ab0161791149f2461ea7c7c946d95d5f93b56ae \ + --hash=sha256:1a4471094e146b6790f61b98616ab8e44f72661879cc63fa1049d13ef711e71e \ + --hash=sha256:1b280e6507ea8a4fa0c0a7150b4e526a8d113989e28eaaef946cc77ffd7efc0a \ + --hash=sha256:1d0ce09d36d53bbbe566fe296965b23b961764c0bcf3ce2fa45f463745c04701 \ + --hash=sha256:20b51fa3f588ff2fe658663db52a41a4f7aa6c04f6201449c6c7c476bd255c0d \ + --hash=sha256:23b2d7679b73fe0e5a4560b672a39f98dfc6f60df63823b0a9970525325b95f6 \ + --hash=sha256:23b701e65c7b36e4bf15546a89279bd4d8675faabc287d06bbcfac7d3c33e1e6 \ + --hash=sha256:2471c201b70d58a0f0c1f91261542a03d9a5e088ed3dc6c160d614c01649c106 \ + --hash=sha256:27657df69e8801be6c3638054e202a135c7f299267f1a55ed3a598934f6c0d75 \ + --hash=sha256:29acab3f66f0f24674b7dc4736477bcd4bc3ad4b896f5f45379a67bce8b96868 \ + --hash=sha256:32453c1de775c889eb4e22f1197fe3bdfe457d16476ea407472b9442e6295f7a \ + --hash=sha256:3a670dc61eb0d0eb7080890c13de3066790f9049b47b0de04007090807c776b0 \ + --hash=sha256:3e0153a805a98f5ada7e09826255ba99fb4f7524bb81bf6b47fb702666484ae1 \ + --hash=sha256:410478a0c562d1a5bcc2f7ea448359fcb050ed48b3c6f6f4f18c313a9bdb1826 \ + --hash=sha256:442acde1e068288a4ba7acfe05f5f343e19fac87bfc96d89eb886b0363e977ec \ + --hash=sha256:48f6a4533887e189dae092f1cf981f2e3885175f7a0f33c91fb5b7b682b6bab6 \ + --hash=sha256:4f57dab5fe3407b6c0c1cc907ac98e8a189f9e418f3b6e54d65a718aaafe3950 \ + --hash=sha256:4f9c515e7914626b2a2e1e311794b4c35720a0be87af52b79ff8e1429fc25f19 \ + --hash=sha256:55fdc093b5a3cb41d420884cdaf37a1e74c3c37a31f46e66286d9145d2063bd0 \ + --hash=sha256:5667ed53d68d91920defdf4035d1cdaa3c3121dc0b113255124bcfada1cfa1b8 \ + --hash=sha256:590344787a90ae57d62511dd7c736ed56b428f04cd8c161fcc5e7232c130c69a \ + --hash=sha256:5a7d70357e7cee13f470c7883a063aae5fe209a493c57d86eb7f5a6f910fae09 \ + --hash=sha256:5c3894db91f5a489fc8fa6a9991820f368f0b3cbdb9cd8849547ccfab3392d86 \ + --hash=sha256:5c849d495bf5154cd8da18a9eb15db127d4dba2968d88831aff6f0331ea9bd4c \ + --hash=sha256:64536573d0a2cb6e625cf309984e2d873979709f2cf22839bf2d61790b448ad5 \ + --hash=sha256:693945278a31f2086d9bf3df0fe8254bbeaef1fe71e1351c3bd730aa7d31c41b \ + --hash=sha256:6db4667b187a6742b33afbbaf05a7bc551ffcf1ced0000a571aedbb4aa42fc7b \ + --hash=sha256:6eb73fa5426ea69ee0e012fb59cdc76a15b1283d6e32e4f8dc4482ec67d1194d \ + --hash=sha256:722e1124aec435320ae01ee3ac7bec11a5d47f25d0ed6328f2273d287bc3abb0 \ + --hash=sha256:7268252af60904bf52c26173cbadc3a071cece75f873705419c8681f24d3edea \ + --hash=sha256:74fb4bee6880b529a0c6560885fce4dc95936920f9f20f53d99a213f7bf66776 \ + --hash=sha256:780d3a35680ced9ce682fbcf4cb9c2bad3136eeff760ab33707b71db84664e3a \ + --hash=sha256:82e8211d69a4f4bc360ea22cd6555f8e61a1bd211d1d5d39d3d228b48c83a897 \ + --hash=sha256:89aa2c2eeb20957be2d950b85974b30a01a762f3308cd02bb15e1ad632e22dc7 \ + --hash=sha256:8aefbba5f69d42246543407ed2461db31006b0f76c4e32dfd6f42215a2c41d09 \ + --hash=sha256:96ec70beabbd3b10e8bfe52616a13561e58fe84c0101dd031dc78f250d5128b9 \ + --hash=sha256:9750cc7fe1ae3b1611bb8cfc3f9ec11d532244235d75901fb6b8e42ce9229dfe \ + --hash=sha256:9acbb16f06fe7f52f441bb6f413ebae6c37baa6ef9edd49cdd567216da8600cd \ + --hash=sha256:9d3e0c25a2350080e9319724dede4f31f43a6c9779be48021a7f4ebde8b2d742 \ + --hash=sha256:a06339f38e9ed3a64e4c4e43aec7f59084033647f908e4259d279a52d3757d09 \ + --hash=sha256:a0cb6f11204443f27a1628b0e460f37fb30f624be6051d490fa7d7e26d4af3d0 \ + --hash=sha256:a7496bfe1da7fb1a4e1cc23bb67c58fab69311cc7d32b5a99c2007b4b2a0e932 \ + --hash=sha256:a828c57f00f729620a442881cc60e57cfcec6842ba38e1b19fd3e47ac0ff8dc1 \ + --hash=sha256:a9b2de4cf0cdd5bd2dee4c4f63a653c61d2408055ab77b151c1957f221cabf2a \ + --hash=sha256:b46c8ae3a8f1f41a0d2ef350c0b6e65822d80772fe46b653ab6b6274f61d4a49 \ + --hash=sha256:b7e3ed87d4138356775346e6845cccbe66cd9e207f3cd11d2f0b9fd13681359d \ + --hash=sha256:b7f2f9f912dca3934c1baec2e4585a674ef16fe00218d833856408c48d5beee7 \ + --hash=sha256:ba60bb19387e13597fb059f32cd4d59445d7b18b69a745b8f8e5db0346f33480 \ + --hash=sha256:beee944ae828747fd7cb216a70f120767fc9f4f00bacae8543c14a6831673f89 \ + --hash=sha256:bfa4a17e17ce9abf47a74ae02f32d014c5e9404b6d9ac7f729e01562bbee601e \ + --hash=sha256:c037a86e8513059a2613aaba4d817bb90b9d9b6b69aace3ce9c877e8c8ed402b \ + --hash=sha256:c302220494f5c1ebeb0912ea782bcd5e2f8308037b3c7553fad0e48ebad6ad82 \ + --hash=sha256:c6321c9efe29975232da3bd0af0ad216800a47e93d763ce64f291917a381b8eb \ + --hash=sha256:c757a9dd70d72b076d6f68efdbb9bc943665ae954dad2801b874c8c69e185068 \ + --hash=sha256:c99169d4ff810155ca50b4da3b075cbde79752443117d89429595c2e8e37fed8 \ + --hash=sha256:c9c92be9fd329ac801cc420e08452b70e7aeab94ea4233a4804f0915c14eba9b \ + --hash=sha256:cc7b01b3754ea68a62bd77ce6020afaffb44a590c2289089289363472d13aedb \ + --hash=sha256:db9e724bebd621d9beca794f2a4ff1d26eed5965b004a97f1f1685a173b869c2 \ + --hash=sha256:dca69045298ce5c11fd539682cff879cc1e664c245d1c64da929813e54241d11 \ + --hash=sha256:dd9b1baec094d91bf36ec729445f7769d0d0cf6b64d04d86e45baf89e2b9059b \ + --hash=sha256:e02a0e11cf6597299b9f3bbd3f93d79217cb90cfd1411aec33848b13f5c656cc \ + --hash=sha256:e6a20a581f9ce92d389a8c7d7c3dd47c81fd5d6e655c8dddf341e14aa48659d0 \ + --hash=sha256:e7004be74cbb7d9f34553a5ce5fb08be14fb33bc86f332fb71cbe5216362a497 \ + --hash=sha256:e774d53b1a477a67838a904131c4b0eef6b3d8a651f8b138b04f748fccfefe17 \ + --hash=sha256:edb678da49d9f72c9f6c609fbe41a5dfb9a9282f9e6a2253d5a91e0fc382d7c0 \ + --hash=sha256:f146e0911cb2f1da549fc58fc7bcd2b836a44b79ef871980d605ec392ff6b0d2 \ + --hash=sha256:f56e2333dda1fe0f909e7cc59f021eba0d2307bc6f012a1ccf2beca6ba362439 \ + --hash=sha256:f9a3ea26252bd92f570600098783d1371354d89d5f6b7dfd87359d669f2109b5 \ + --hash=sha256:f9aa1878d1083b276b0196f2dfbe00c9b7e752475ed3b682025ff20c1c1f51ac \ + --hash=sha256:fb3c2db03683b5767dedb5769b8a40ebb47d6f7f45b1b3e3b4b51ec8ad9d9825 \ + --hash=sha256:fbeb989b5cc29e8daf7f976b421c220f1b8c731cbf22b9130d8815418ea45887 \ + --hash=sha256:fde5bd59ab5357e3853313127f4d3565fc7dad314a74d7b5d43c22c6a5ed2ced \ + --hash=sha256:fe1a06da377e3a1062ae5fe0926e12b84eceb8a50b350ddca72dc85015873f74 + # via + # aiohttp + # aiosignal gidgethub==3.3.0 \ --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c \ - # via aiohttp + # via -r requirements.in idna==2.8 \ --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ - --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c \ - # via idna-ssl, yarl + --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c + # via yarl multidict==4.7.4 \ --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ --hash=sha256:26502cefa86d79b86752e96639352c7247846515c864d7c2eb85d036752b643c \ @@ -56,16 +196,13 @@ multidict==4.7.4 \ --hash=sha256:a8ed33e8f9b67e3b592c56567135bb42e7e0e97417a4b6a771e60898dfd5182b \ --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ - --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 \ - # via aiohttp, yarl -typing-extensions==3.7.4.1 \ - --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ - --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ - --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 \ - # via aiohttp + --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 + # via + # aiohttp + # yarl uritemplate==3.0.1 \ --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ - --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae \ + --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae # via gidgethub yarl==1.4.2 \ --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ @@ -84,5 +221,5 @@ yarl==1.4.2 \ --hash=sha256:c2b509ac3d4b988ae8769901c66345425e361d518aecbe4acbfc2567e416626a \ --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ - --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 \ + --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 # via aiohttp From 996bf7671e0a1a78777f1553f20ee0745cd1c892 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 May 2024 17:46:33 +0000 Subject: [PATCH 08/67] Bump aiohttp from 3.6.2 to 3.9.4 Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.6.2 to 3.9.4. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.6.2...v3.9.4) --- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- __app__/requirements.txt | 4 +- dev-requirements.txt | 289 ++++++++++++++++++++++++++++++--------- 2 files changed, 230 insertions(+), 63 deletions(-) diff --git a/__app__/requirements.txt b/__app__/requirements.txt index caccad6..bd0f9bf 100644 --- a/__app__/requirements.txt +++ b/__app__/requirements.txt @@ -81,7 +81,7 @@ aiohttp==3.9.4 \ --hash=sha256:f3460a92638dce7e47062cf088d6e7663adb135e936cb117be88d5e6c48c9d53 \ --hash=sha256:f595db1bceabd71c82e92df212dd9525a8a2c6947d39e3c994c4f27d2fe15b11 \ --hash=sha256:fb68dc73bc8ac322d2e392a59a9e396c4f35cb6fdbdd749e139d1d6c985f2527 - # via -r requirements.in + # via -r __app__/requirements.in aiosignal==1.3.1 \ --hash=sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc \ --hash=sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17 @@ -174,7 +174,7 @@ frozenlist==1.4.1 \ gidgethub==3.3.0 \ --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 - # via -r requirements.in + # via -r __app__/requirements.in idna==2.8 \ --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c diff --git a/dev-requirements.txt b/dev-requirements.txt index 232ea46..6570125 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -4,53 +4,120 @@ # # pip-compile --generate-hashes '.\dev-requirements.in' # -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 +aiohttp==3.9.4 \ + --hash=sha256:0593822dcdb9483d41f12041ff7c90d4d1033ec0e880bcfaf102919b715f47f1 \ + --hash=sha256:10afd99b8251022ddf81eaed1d90f5a988e349ee7d779eb429fb07b670751e8c \ + --hash=sha256:17e7c051f53a0d2ebf33013a9cbf020bb4e098c4bc5bce6f7b0c962108d97eab \ + --hash=sha256:221204dbda5ef350e8db6287937621cf75e85778b296c9c52260b522231940ed \ + --hash=sha256:2506d9f7a9b91033201be9ffe7d89c6a54150b0578803cce5cb84a943d075bc3 \ + --hash=sha256:268ba22d917655d1259af2d5659072b7dc11b4e1dc2cb9662fdd867d75afc6a4 \ + --hash=sha256:2bd9d334412961125e9f68d5b73c1d0ab9ea3f74a58a475e6b119f5293eee7ba \ + --hash=sha256:305edae1dea368ce09bcb858cf5a63a064f3bff4767dec6fa60a0cc0e805a1d3 \ + --hash=sha256:32dc814ddbb254f6170bca198fe307920f6c1308a5492f049f7f63554b88ef36 \ + --hash=sha256:35d78076736f4a668d57ade00c65d30a8ce28719d8a42471b2a06ccd1a2e3063 \ + --hash=sha256:3b2feaf1b7031ede1bc0880cec4b0776fd347259a723d625357bb4b82f62687b \ + --hash=sha256:418bb0038dfafeac923823c2e63226179976c76f981a2aaad0ad5d51f2229bca \ + --hash=sha256:419f009fa4cfde4d16a7fc070d64f36d70a8d35a90d71aa27670bba2be4fd039 \ + --hash=sha256:47f6eb74e1ecb5e19a78f4a4228aa24df7fbab3b62d4a625d3f41194a08bd54f \ + --hash=sha256:4d79aad0ad4b980663316f26d9a492e8fab2af77c69c0f33780a56843ad2f89e \ + --hash=sha256:4f7e69a7fd4b5ce419238388e55abd220336bd32212c673ceabc57ccf3d05b55 \ + --hash=sha256:52b8b4e06fc15519019e128abedaeb56412b106ab88b3c452188ca47a25c4093 \ + --hash=sha256:56181093c10dbc6ceb8a29dfeea1e815e1dfdc020169203d87fd8d37616f73f9 \ + --hash=sha256:63f41a909d182d2b78fe3abef557fcc14da50c7852f70ae3be60e83ff64edba5 \ + --hash=sha256:689eb4356649ec9535b3686200b231876fb4cab4aca54e3bece71d37f50c1d13 \ + --hash=sha256:69046cd9a2a17245c4ce3c1f1a4ff8c70c7701ef222fce3d1d8435f09042bba1 \ + --hash=sha256:69b97aa5792428f321f72aeb2f118e56893371f27e0b7d05750bcad06fc42ca1 \ + --hash=sha256:69ff36d3f8f5652994e08bd22f093e11cfd0444cea310f92e01b45a4e46b624e \ + --hash=sha256:6f121900131d116e4a93b55ab0d12ad72573f967b100e49086e496a9b24523ea \ + --hash=sha256:6ff71ede6d9a5a58cfb7b6fffc83ab5d4a63138276c771ac91ceaaddf5459644 \ + --hash=sha256:71a8f241456b6c2668374d5d28398f8e8cdae4cce568aaea54e0f39359cd928d \ + --hash=sha256:74e4e48c8752d14ecfb36d2ebb3d76d614320570e14de0a3aa7a726ff150a03c \ + --hash=sha256:7673a76772bda15d0d10d1aa881b7911d0580c980dbd16e59d7ba1422b2d83cd \ + --hash=sha256:76d32588ef7e4a3f3adff1956a0ba96faabbdee58f2407c122dd45aa6e34f372 \ + --hash=sha256:7b39476ee69cfe64061fd77a73bf692c40021f8547cda617a3466530ef63f947 \ + --hash=sha256:7be99f4abb008cb38e144f85f515598f4c2c8932bf11b65add0ff59c9c876d99 \ + --hash=sha256:7bfdb41dc6e85d8535b00d73947548a748e9534e8e4fddd2638109ff3fb081df \ + --hash=sha256:7d2334e387b2adcc944680bebcf412743f2caf4eeebd550f67249c1c3696be04 \ + --hash=sha256:7d29dd5319d20aa3b7749719ac9685fbd926f71ac8c77b2477272725f882072d \ + --hash=sha256:7d4845f8501ab28ebfdbeab980a50a273b415cf69e96e4e674d43d86a464df9d \ + --hash=sha256:824dff4f9f4d0f59d0fa3577932ee9a20e09edec8a2f813e1d6b9f89ced8293f \ + --hash=sha256:84e90494db7df3be5e056f91412f9fa9e611fbe8ce4aaef70647297f5943b276 \ + --hash=sha256:8a78dfb198a328bfb38e4308ca8167028920fb747ddcf086ce706fbdd23b2926 \ + --hash=sha256:8b73a06bafc8dcc508420db43b4dd5850e41e69de99009d0351c4f3007960019 \ + --hash=sha256:916b0417aeddf2c8c61291238ce25286f391a6acb6f28005dd9ce282bd6311b6 \ + --hash=sha256:935c369bf8acc2dc26f6eeb5222768aa7c62917c3554f7215f2ead7386b33748 \ + --hash=sha256:939393e8c3f0a5bcd33ef7ace67680c318dc2ae406f15e381c0054dd658397de \ + --hash=sha256:9860d455847cd98eb67897f5957b7cd69fbcb436dd3f06099230f16a66e66f79 \ + --hash=sha256:9b6787b6d0b3518b2ee4cbeadd24a507756ee703adbac1ab6dc7c4434b8c572a \ + --hash=sha256:9c0b09d76e5a4caac3d27752027fbd43dc987b95f3748fad2b924a03fe8632ad \ + --hash=sha256:a1885d2470955f70dfdd33a02e1749613c5a9c5ab855f6db38e0b9389453dce7 \ + --hash=sha256:a3666cf4182efdb44d73602379a66f5fdfd5da0db5e4520f0ac0dcca644a3497 \ + --hash=sha256:aba80e77c227f4234aa34a5ff2b6ff30c5d6a827a91d22ff6b999de9175d71bd \ + --hash=sha256:b33f34c9c7decdb2ab99c74be6443942b730b56d9c5ee48fb7df2c86492f293c \ + --hash=sha256:b65b0f8747b013570eea2f75726046fa54fa8e0c5db60f3b98dd5d161052004a \ + --hash=sha256:b71e614c1ae35c3d62a293b19eface83d5e4d194e3eb2fabb10059d33e6e8cbf \ + --hash=sha256:c111b3c69060d2bafc446917534150fd049e7aedd6cbf21ba526a5a97b4402a5 \ + --hash=sha256:c3770365675f6be220032f6609a8fbad994d6dcf3ef7dbcf295c7ee70884c9af \ + --hash=sha256:c4870cb049f10d7680c239b55428916d84158798eb8f353e74fa2c98980dcc0b \ + --hash=sha256:c5ff8ff44825736a4065d8544b43b43ee4c6dd1530f3a08e6c0578a813b0aa35 \ + --hash=sha256:c78700130ce2dcebb1a8103202ae795be2fa8c9351d0dd22338fe3dac74847d9 \ + --hash=sha256:c7a5b676d3c65e88b3aca41816bf72831898fcd73f0cbb2680e9d88e819d1e4d \ + --hash=sha256:c8b04a3dbd54de6ccb7604242fe3ad67f2f3ca558f2d33fe19d4b08d90701a89 \ + --hash=sha256:d12a244627eba4e9dc52cbf924edef905ddd6cafc6513849b4876076a6f38b0e \ + --hash=sha256:d1df528a85fb404899d4207a8d9934cfd6be626e30e5d3a5544a83dbae6d8a7e \ + --hash=sha256:d58a54d6ff08d2547656356eea8572b224e6f9bbc0cf55fa9966bcaac4ddfb10 \ + --hash=sha256:d6577140cd7db19e430661e4b2653680194ea8c22c994bc65b7a19d8ec834403 \ + --hash=sha256:d6a67e26daa686a6fbdb600a9af8619c80a332556245fa8e86c747d226ab1a1e \ + --hash=sha256:dcad56c8d8348e7e468899d2fb3b309b9bc59d94e6db08710555f7436156097f \ + --hash=sha256:e0198ea897680e480845ec0ffc5a14e8b694e25b3f104f63676d55bf76a82f1a \ + --hash=sha256:e27d3b5ed2c2013bce66ad67ee57cbf614288bda8cdf426c8d8fe548316f1b5f \ + --hash=sha256:e40d2cd22914d67c84824045861a5bb0fb46586b15dfe4f046c7495bf08306b2 \ + --hash=sha256:e4370dda04dc8951012f30e1ce7956a0a226ac0714a7b6c389fb2f43f22a250e \ + --hash=sha256:e571fdd9efd65e86c6af2f332e0e95dad259bfe6beb5d15b3c3eca3a6eb5d87b \ + --hash=sha256:e78da6b55275987cbc89141a1d8e75f5070e577c482dd48bd9123a76a96f0bbb \ + --hash=sha256:eae569fb1e7559d4f3919965617bb39f9e753967fae55ce13454bec2d1c54f09 \ + --hash=sha256:eb30c4510a691bb87081192a394fb661860e75ca3896c01c6d186febe7c88530 \ + --hash=sha256:efbdd51872cf170093998c87ccdf3cb5993add3559341a8e5708bcb311934c94 \ + --hash=sha256:f3460a92638dce7e47062cf088d6e7663adb135e936cb117be88d5e6c48c9d53 \ + --hash=sha256:f595db1bceabd71c82e92df212dd9525a8a2c6947d39e3c994c4f27d2fe15b11 \ + --hash=sha256:fb68dc73bc8ac322d2e392a59a9e396c4f35cb6fdbdd749e139d1d6c985f2527 + # via -r __app__/requirements.txt +aiosignal==1.3.1 \ + --hash=sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc \ + --hash=sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17 + # via + # -r __app__/requirements.txt + # aiohttp appdirs==1.4.3 \ --hash=sha256:9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92 \ - --hash=sha256:d8b24664561d0d34ddfaec54636d502d7cea6e29c3eaf68f3df6180863e2166e \ + --hash=sha256:d8b24664561d0d34ddfaec54636d502d7cea6e29c3eaf68f3df6180863e2166e # via black -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 asynctest==0.13.0 \ --hash=sha256:5da6118a7e6d6b54d83a8f7197769d046922a44d2a99c21382f0a6e4fadae676 \ --hash=sha256:c27862842d15d83e6a34eb0b2866c323880eb3a75e4485b079ea11748fd77fac -atomicwrites==1.3.0 \ - --hash=sha256:03472c30eb2c5d1ba9227e4c2ca66ab8287fbfbbda3888aa93dc2e28fc6811b4 \ - --hash=sha256:75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6 \ - # via pytest + # via -r dev-requirements.in attrs==19.3.0 \ --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 + # via + # -r __app__/requirements.txt + # aiohttp + # black + # pytest azure-functions==1.0.7 \ --hash=sha256:88997fbb7e8ff5b36a71cbadee6c8abbce6c4525942a6f997e24d6cf23fac23b \ --hash=sha256:b65cd543736640d26ff95bfc86438e9c6afade431fa50190334fca757cebf565 + # via -r dev-requirements.in black==19.10b0 \ --hash=sha256:1b30e59be925fafc1ee4565e5e08abef6b03fe455102883820fe5ee2e4734e0b \ --hash=sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539 -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 + # via -r dev-requirements.in click==7.0 \ --hash=sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13 \ - --hash=sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7 \ - # via black, pip-tools -colorama==0.4.3 \ - --hash=sha256:7d73d2a99753107a36ac6b455ee49046802e59d9d076ef8e47b61499fa29afff \ - --hash=sha256:e96da0d330793e2cb9485e9ddfd918d456036c7149416295932478192f4436a1 \ - # via pytest + --hash=sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7 + # via + # black + # pip-tools coverage==5.0.3 \ --hash=sha256:15cf13a6896048d6d947bf7d222f36e4809ab926894beb748fc9caa14605d9c3 \ --hash=sha256:1daa3eceed220f9fdb80d5ff950dd95112cd27f70d004c7918ca6dfc6c47054c \ @@ -82,26 +149,107 @@ coverage==5.0.3 \ --hash=sha256:da93027835164b8223e8e5af2cf902a4c80ed93cb0909417234f4a9df3bcd9af \ --hash=sha256:e69215621707119c6baf99bda014a45b999d37602cb7043d943c76a59b05bf52 \ --hash=sha256:ea9525e0fef2de9208250d6c5aeeee0138921057cd67fcef90fbed49c4d62d37 \ - --hash=sha256:fca1669d464f0c9831fd10be2eef6b86f5ebd76c724d1e0706ebdff86bb4adf0 \ + --hash=sha256:fca1669d464f0c9831fd10be2eef6b86f5ebd76c724d1e0706ebdff86bb4adf0 # via pytest-cov +frozenlist==1.4.1 \ + --hash=sha256:04ced3e6a46b4cfffe20f9ae482818e34eba9b5fb0ce4056e4cc9b6e212d09b7 \ + --hash=sha256:0633c8d5337cb5c77acbccc6357ac49a1770b8c487e5b3505c57b949b4b82e98 \ + --hash=sha256:068b63f23b17df8569b7fdca5517edef76171cf3897eb68beb01341131fbd2ad \ + --hash=sha256:0c250a29735d4f15321007fb02865f0e6b6a41a6b88f1f523ca1596ab5f50bd5 \ + --hash=sha256:1979bc0aeb89b33b588c51c54ab0161791149f2461ea7c7c946d95d5f93b56ae \ + --hash=sha256:1a4471094e146b6790f61b98616ab8e44f72661879cc63fa1049d13ef711e71e \ + --hash=sha256:1b280e6507ea8a4fa0c0a7150b4e526a8d113989e28eaaef946cc77ffd7efc0a \ + --hash=sha256:1d0ce09d36d53bbbe566fe296965b23b961764c0bcf3ce2fa45f463745c04701 \ + --hash=sha256:20b51fa3f588ff2fe658663db52a41a4f7aa6c04f6201449c6c7c476bd255c0d \ + --hash=sha256:23b2d7679b73fe0e5a4560b672a39f98dfc6f60df63823b0a9970525325b95f6 \ + --hash=sha256:23b701e65c7b36e4bf15546a89279bd4d8675faabc287d06bbcfac7d3c33e1e6 \ + --hash=sha256:2471c201b70d58a0f0c1f91261542a03d9a5e088ed3dc6c160d614c01649c106 \ + --hash=sha256:27657df69e8801be6c3638054e202a135c7f299267f1a55ed3a598934f6c0d75 \ + --hash=sha256:29acab3f66f0f24674b7dc4736477bcd4bc3ad4b896f5f45379a67bce8b96868 \ + --hash=sha256:32453c1de775c889eb4e22f1197fe3bdfe457d16476ea407472b9442e6295f7a \ + --hash=sha256:3a670dc61eb0d0eb7080890c13de3066790f9049b47b0de04007090807c776b0 \ + --hash=sha256:3e0153a805a98f5ada7e09826255ba99fb4f7524bb81bf6b47fb702666484ae1 \ + --hash=sha256:410478a0c562d1a5bcc2f7ea448359fcb050ed48b3c6f6f4f18c313a9bdb1826 \ + --hash=sha256:442acde1e068288a4ba7acfe05f5f343e19fac87bfc96d89eb886b0363e977ec \ + --hash=sha256:48f6a4533887e189dae092f1cf981f2e3885175f7a0f33c91fb5b7b682b6bab6 \ + --hash=sha256:4f57dab5fe3407b6c0c1cc907ac98e8a189f9e418f3b6e54d65a718aaafe3950 \ + --hash=sha256:4f9c515e7914626b2a2e1e311794b4c35720a0be87af52b79ff8e1429fc25f19 \ + --hash=sha256:55fdc093b5a3cb41d420884cdaf37a1e74c3c37a31f46e66286d9145d2063bd0 \ + --hash=sha256:5667ed53d68d91920defdf4035d1cdaa3c3121dc0b113255124bcfada1cfa1b8 \ + --hash=sha256:590344787a90ae57d62511dd7c736ed56b428f04cd8c161fcc5e7232c130c69a \ + --hash=sha256:5a7d70357e7cee13f470c7883a063aae5fe209a493c57d86eb7f5a6f910fae09 \ + --hash=sha256:5c3894db91f5a489fc8fa6a9991820f368f0b3cbdb9cd8849547ccfab3392d86 \ + --hash=sha256:5c849d495bf5154cd8da18a9eb15db127d4dba2968d88831aff6f0331ea9bd4c \ + --hash=sha256:64536573d0a2cb6e625cf309984e2d873979709f2cf22839bf2d61790b448ad5 \ + --hash=sha256:693945278a31f2086d9bf3df0fe8254bbeaef1fe71e1351c3bd730aa7d31c41b \ + --hash=sha256:6db4667b187a6742b33afbbaf05a7bc551ffcf1ced0000a571aedbb4aa42fc7b \ + --hash=sha256:6eb73fa5426ea69ee0e012fb59cdc76a15b1283d6e32e4f8dc4482ec67d1194d \ + --hash=sha256:722e1124aec435320ae01ee3ac7bec11a5d47f25d0ed6328f2273d287bc3abb0 \ + --hash=sha256:7268252af60904bf52c26173cbadc3a071cece75f873705419c8681f24d3edea \ + --hash=sha256:74fb4bee6880b529a0c6560885fce4dc95936920f9f20f53d99a213f7bf66776 \ + --hash=sha256:780d3a35680ced9ce682fbcf4cb9c2bad3136eeff760ab33707b71db84664e3a \ + --hash=sha256:82e8211d69a4f4bc360ea22cd6555f8e61a1bd211d1d5d39d3d228b48c83a897 \ + --hash=sha256:89aa2c2eeb20957be2d950b85974b30a01a762f3308cd02bb15e1ad632e22dc7 \ + --hash=sha256:8aefbba5f69d42246543407ed2461db31006b0f76c4e32dfd6f42215a2c41d09 \ + --hash=sha256:96ec70beabbd3b10e8bfe52616a13561e58fe84c0101dd031dc78f250d5128b9 \ + --hash=sha256:9750cc7fe1ae3b1611bb8cfc3f9ec11d532244235d75901fb6b8e42ce9229dfe \ + --hash=sha256:9acbb16f06fe7f52f441bb6f413ebae6c37baa6ef9edd49cdd567216da8600cd \ + --hash=sha256:9d3e0c25a2350080e9319724dede4f31f43a6c9779be48021a7f4ebde8b2d742 \ + --hash=sha256:a06339f38e9ed3a64e4c4e43aec7f59084033647f908e4259d279a52d3757d09 \ + --hash=sha256:a0cb6f11204443f27a1628b0e460f37fb30f624be6051d490fa7d7e26d4af3d0 \ + --hash=sha256:a7496bfe1da7fb1a4e1cc23bb67c58fab69311cc7d32b5a99c2007b4b2a0e932 \ + --hash=sha256:a828c57f00f729620a442881cc60e57cfcec6842ba38e1b19fd3e47ac0ff8dc1 \ + --hash=sha256:a9b2de4cf0cdd5bd2dee4c4f63a653c61d2408055ab77b151c1957f221cabf2a \ + --hash=sha256:b46c8ae3a8f1f41a0d2ef350c0b6e65822d80772fe46b653ab6b6274f61d4a49 \ + --hash=sha256:b7e3ed87d4138356775346e6845cccbe66cd9e207f3cd11d2f0b9fd13681359d \ + --hash=sha256:b7f2f9f912dca3934c1baec2e4585a674ef16fe00218d833856408c48d5beee7 \ + --hash=sha256:ba60bb19387e13597fb059f32cd4d59445d7b18b69a745b8f8e5db0346f33480 \ + --hash=sha256:beee944ae828747fd7cb216a70f120767fc9f4f00bacae8543c14a6831673f89 \ + --hash=sha256:bfa4a17e17ce9abf47a74ae02f32d014c5e9404b6d9ac7f729e01562bbee601e \ + --hash=sha256:c037a86e8513059a2613aaba4d817bb90b9d9b6b69aace3ce9c877e8c8ed402b \ + --hash=sha256:c302220494f5c1ebeb0912ea782bcd5e2f8308037b3c7553fad0e48ebad6ad82 \ + --hash=sha256:c6321c9efe29975232da3bd0af0ad216800a47e93d763ce64f291917a381b8eb \ + --hash=sha256:c757a9dd70d72b076d6f68efdbb9bc943665ae954dad2801b874c8c69e185068 \ + --hash=sha256:c99169d4ff810155ca50b4da3b075cbde79752443117d89429595c2e8e37fed8 \ + --hash=sha256:c9c92be9fd329ac801cc420e08452b70e7aeab94ea4233a4804f0915c14eba9b \ + --hash=sha256:cc7b01b3754ea68a62bd77ce6020afaffb44a590c2289089289363472d13aedb \ + --hash=sha256:db9e724bebd621d9beca794f2a4ff1d26eed5965b004a97f1f1685a173b869c2 \ + --hash=sha256:dca69045298ce5c11fd539682cff879cc1e664c245d1c64da929813e54241d11 \ + --hash=sha256:dd9b1baec094d91bf36ec729445f7769d0d0cf6b64d04d86e45baf89e2b9059b \ + --hash=sha256:e02a0e11cf6597299b9f3bbd3f93d79217cb90cfd1411aec33848b13f5c656cc \ + --hash=sha256:e6a20a581f9ce92d389a8c7d7c3dd47c81fd5d6e655c8dddf341e14aa48659d0 \ + --hash=sha256:e7004be74cbb7d9f34553a5ce5fb08be14fb33bc86f332fb71cbe5216362a497 \ + --hash=sha256:e774d53b1a477a67838a904131c4b0eef6b3d8a651f8b138b04f748fccfefe17 \ + --hash=sha256:edb678da49d9f72c9f6c609fbe41a5dfb9a9282f9e6a2253d5a91e0fc382d7c0 \ + --hash=sha256:f146e0911cb2f1da549fc58fc7bcd2b836a44b79ef871980d605ec392ff6b0d2 \ + --hash=sha256:f56e2333dda1fe0f909e7cc59f021eba0d2307bc6f012a1ccf2beca6ba362439 \ + --hash=sha256:f9a3ea26252bd92f570600098783d1371354d89d5f6b7dfd87359d669f2109b5 \ + --hash=sha256:f9aa1878d1083b276b0196f2dfbe00c9b7e752475ed3b682025ff20c1c1f51ac \ + --hash=sha256:fb3c2db03683b5767dedb5769b8a40ebb47d6f7f45b1b3e3b4b51ec8ad9d9825 \ + --hash=sha256:fbeb989b5cc29e8daf7f976b421c220f1b8c731cbf22b9130d8815418ea45887 \ + --hash=sha256:fde5bd59ab5357e3853313127f4d3565fc7dad314a74d7b5d43c22c6a5ed2ced \ + --hash=sha256:fe1a06da377e3a1062ae5fe0926e12b84eceb8a50b350ddca72dc85015873f74 + # via + # -r __app__/requirements.txt + # aiohttp + # aiosignal gidgethub==3.3.0 \ --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c + # via -r __app__/requirements.txt idna==2.8 \ --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c -importlib-metadata==1.4.0 \ - --hash=sha256:bdd9b7c397c273bcc9a11d6629a38487cd07154fa255a467bf704cd2c258e359 \ - --hash=sha256:f17c015735e1a88296994c0697ecea7e11db24290941983b08c9feb30921e6d8 \ - # via pluggy, pytest + # via + # -r __app__/requirements.txt + # yarl importlib-resources==1.0.2 \ --hash=sha256:6e2783b2538bd5a14678284a3962b0660c715e5a0f10243fd5e00a4b5974f50b \ --hash=sha256:d3279fd0f6f847cced9f7acc19bd3e5df54d34f93a2e7bb5f238f81545787078 + # via -r dev-requirements.in more-itertools==8.1.0 \ --hash=sha256:1a2a32c72400d365000412fe08eb4a24ebee89997c18d3d147544f70f5403b39 \ - --hash=sha256:c468adec578380b6281a114cb8a5db34eb1116277da92d7c46f904f0b52d3288 \ + --hash=sha256:c468adec578380b6281a114cb8a5db34eb1116277da92d7c46f904f0b52d3288 # via pytest multidict==4.7.4 \ --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ @@ -121,10 +269,10 @@ multidict==4.7.4 \ --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 -mypy-extensions==0.4.3 \ - --hash=sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d \ - --hash=sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8 \ - # via mypy + # via + # -r __app__/requirements.txt + # aiohttp + # yarl mypy==0.761 \ --hash=sha256:0a9a45157e532da06fe56adcfef8a74629566b607fa2c1ac0122d1ff995c748a \ --hash=sha256:2c35cae79ceb20d47facfad51f952df16c2ae9f45db6cb38405a3da1cf8fc0a7 \ @@ -140,38 +288,50 @@ mypy==0.761 \ --hash=sha256:c6d27bd20c3ba60d5b02f20bd28e20091d6286a699174dfad515636cb09b5a72 \ --hash=sha256:e2bb577d10d09a2d8822a042a23b8d62bc3b269667c9eb8e60a6edfa000211b1 \ --hash=sha256:f97a605d7c8bc2c6d1172c2f0d5a65b24142e11a58de689046e62c2d632ca8c1 + # via -r dev-requirements.in +mypy-extensions==0.4.3 \ + --hash=sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d \ + --hash=sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8 + # via mypy packaging==20.1 \ --hash=sha256:170748228214b70b672c581a3dd610ee51f733018650740e98c7df862a583f73 \ - --hash=sha256:e665345f9eef0c621aa0bf2f8d78cf6d21904eef16a93f020240b704a57f1334 \ + --hash=sha256:e665345f9eef0c621aa0bf2f8d78cf6d21904eef16a93f020240b704a57f1334 # via pytest pathspec==0.7.0 \ --hash=sha256:163b0632d4e31cef212976cf57b43d9fd6b0bac6e67c26015d611a647d5e7424 \ - --hash=sha256:562aa70af2e0d434367d9790ad37aed893de47f1693e4201fd1d3dca15d19b96 \ + --hash=sha256:562aa70af2e0d434367d9790ad37aed893de47f1693e4201fd1d3dca15d19b96 # via black pip-tools==4.4.0 \ --hash=sha256:636efb9e3d3be0275a9089b5796494ba6d5fe2be37e878d3516a0ac6e64a9179 \ --hash=sha256:da39692c36c1e66bc5fec078500225586a465f90c07287e9e48eb44f11a978b2 + # via -r dev-requirements.in pluggy==0.13.1 \ --hash=sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0 \ - --hash=sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d \ + --hash=sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d # via pytest py==1.8.1 \ --hash=sha256:5e27081401262157467ad6e7f851b7aa402c5852dbcb3dae06768434de5752aa \ - --hash=sha256:c20fdd83a5dbc0af9efd622bee9a5564e278f6380fffcacc43ba6f43db2813b0 \ + --hash=sha256:c20fdd83a5dbc0af9efd622bee9a5564e278f6380fffcacc43ba6f43db2813b0 # via pytest pyparsing==2.4.6 \ --hash=sha256:4c830582a84fb022400b85429791bc551f1f4871c33f23e44f353119e92f969f \ - --hash=sha256:c342dccb5250c08d45fd6f8b4a559613ca603b57498511740e65cd11a2e7dcec \ + --hash=sha256:c342dccb5250c08d45fd6f8b4a559613ca603b57498511740e65cd11a2e7dcec # via packaging +pytest==5.3.4 \ + --hash=sha256:1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600 \ + --hash=sha256:c13d1943c63e599b98cf118fcb9703e4d7bde7caa9a432567bcdcae4bf512d20 + # via + # -r dev-requirements.in + # pytest-asyncio + # pytest-cov pytest-asyncio==0.10.0 \ --hash=sha256:9fac5100fd716cbecf6ef89233e8590a4ad61d729d1732e0a96b84182df1daaf \ --hash=sha256:d734718e25cfc32d2bf78d346e99d33724deeba774cc4afdf491530c6184b63b + # via -r dev-requirements.in pytest-cov==2.8.1 \ --hash=sha256:cc6742d8bac45070217169f5f72ceee1e0e55b0221f54bcf24845972d3a47f2b \ --hash=sha256:cdbdef4f870408ebdbfeb44e63e07eb18bb4619fae852f6e760645fa36172626 -pytest==5.3.4 \ - --hash=sha256:1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600 \ - --hash=sha256:c13d1943c63e599b98cf118fcb9703e4d7bde7caa9a432567bcdcae4bf512d20 + # via -r dev-requirements.in regex==2020.1.8 \ --hash=sha256:07b39bf943d3d2fe63d46281d8504f8df0ff3fe4c57e13d1656737950e53e525 \ --hash=sha256:0932941cdfb3afcbc26cc3bcf7c3f3d73d5a9b9c56955d432dbf8bbc147d4c5b \ @@ -193,15 +353,17 @@ regex==2020.1.8 \ --hash=sha256:e3cd21cc2840ca67de0bbe4071f79f031c81418deb544ceda93ad75ca1ee9f7b \ --hash=sha256:e6c02171d62ed6972ca8631f6f34fa3281d51db8b326ee397b9c83093a6b7242 \ --hash=sha256:e7c7661f7276507bce416eaae22040fd91ca471b5b33c13f8ff21137ed6f248c \ - --hash=sha256:ecc6de77df3ef68fee966bb8cb4e067e84d4d1f397d0ef6fce46913663540d77 \ + --hash=sha256:ecc6de77df3ef68fee966bb8cb4e067e84d4d1f397d0ef6fce46913663540d77 # via black six==1.14.0 \ --hash=sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a \ - --hash=sha256:8f3cd2e254d8f793e7f3d6d9df77b92252b52637291d0f0da013c76ea2724b6c \ - # via packaging, pip-tools + --hash=sha256:8f3cd2e254d8f793e7f3d6d9df77b92252b52637291d0f0da013c76ea2724b6c + # via + # packaging + # pip-tools toml==0.10.0 \ --hash=sha256:229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c \ - --hash=sha256:235682dd292d5899d361a811df37e04a8828a5b1da3115886b73cf81ebc9100e \ + --hash=sha256:235682dd292d5899d361a811df37e04a8828a5b1da3115886b73cf81ebc9100e # via black typed-ast==1.4.1 \ --hash=sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355 \ @@ -224,18 +386,24 @@ typed-ast==1.4.1 \ --hash=sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34 \ --hash=sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe \ --hash=sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4 \ - --hash=sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7 \ - # via black, mypy + --hash=sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7 + # via + # black + # mypy typing-extensions==3.7.4.1 \ --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 + # via mypy uritemplate==3.0.1 \ --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae + # via + # -r __app__/requirements.txt + # gidgethub wcwidth==0.1.8 \ --hash=sha256:8fd29383f539be45b20bd4df0dc29c20ba48654a41e661925e612311e9f3c603 \ - --hash=sha256:f28b3e8a6483e5d49e7f8949ac1a78314e740333ae305b4ba5defd3e74fb37a8 \ + --hash=sha256:f28b3e8a6483e5d49e7f8949ac1a78314e740333ae305b4ba5defd3e74fb37a8 # via pytest yarl==1.4.2 \ --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ @@ -255,7 +423,6 @@ yarl==1.4.2 \ --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 -zipp==2.1.0 \ - --hash=sha256:ccc94ed0909b58ffe34430ea5451f07bc0c76467d7081619a454bf5c98b89e28 \ - --hash=sha256:feae2f18633c32fc71f2de629bfb3bd3c9325cd4419642b1f1da42ee488d9b98 \ - # via importlib-metadata + # via + # -r __app__/requirements.txt + # aiohttp From f2503cb4a37040fcc2b80448e8ad52bd48ef67a5 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 15 May 2024 05:19:07 +0300 Subject: [PATCH 09/67] squash! --- .github/workflows/GitHub.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml index 0be30ba..5e814e3 100644 --- a/.github/workflows/GitHub.yml +++ b/.github/workflows/GitHub.yml @@ -50,7 +50,7 @@ jobs: TELEMETRY_DISABLED: 1 steps: - - uses: pozil/auto-assign-issue@v1.14.0 + - uses: pozil/auto-assign-issue@v2.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} assignees: NikolaRHristov From a9048159dd0825c45431508a4bb5b1a62782a85a Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 17 May 2024 08:12:23 +0300 Subject: [PATCH 10/67] squash! --- .github/dependabot.yml | 14 -------- .github/workflows/Dependabot.yml | 45 ------------------------- .github/workflows/GitHub.yml | 57 -------------------------------- 3 files changed, 116 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/Dependabot.yml delete mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4b4fcd7..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -enable-beta-ecosystems: true - -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "pip" - directory: "/__app__" - schedule: - interval: "daily" - versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml deleted file mode 100644 index e6091e5..0000000 --- a/.github/workflows/Dependabot.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Dependabot - -concurrency: - group: Dependabot-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - security-events: write - contents: write - pull-requests: write - -on: - workflow_dispatch: - pull_request: - -jobs: - Approve: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.1.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - Merge: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.1.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml deleted file mode 100644 index 5e814e3..0000000 --- a/.github/workflows/GitHub.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: GitHub - -concurrency: - group: GitHub-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - issues: write - pull-requests: write - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - Assign: - runs-on: ubuntu-latest - - env: - ADBLOCK: true - ASTRO_TELEMETRY_DISABLED: 1 - AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 - AZURE_CORE_COLLECT_TELEMETRY: 0 - CHOOSENIM_NO_ANALYTICS: 1 - DIEZ_DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - DO_NOT_TRACK: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPTOUT: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GRIT_TELEMETRY_DISABLED: 1 - HASURA_GRAPHQL_ENABLE_TELEMETRY: false - HINT_TELEMETRY: off - HOMEBREW_NO_ANALYTICS: 1 - INFLUXD_REPORTING_DISABLED: true - ITERATIVE_DO_NOT_TRACK: 1 - NEXT_TELEMETRY_DEBUG: 1 - NEXT_TELEMETRY_DISABLED: 1 - NG_CLI_ANALYTICS: false - NUXT_TELEMETRY_DISABLED: 1 - PIN_DO_NOT_TRACK: 1 - POWERSHELL_TELEMETRY_OPTOUT: 1 - SAM_CLI_TELEMETRY: 0 - STNOUPGRADE: 1 - STRIPE_CLI_TELEMETRY_OPTOUT: 1 - TELEMETRY_DISABLED: 1 - - steps: - - uses: pozil/auto-assign-issue@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: NikolaRHristov - numOfAssignee: 1 From 1794a3ec4eb6d3548bce4705b443a5d0afb96d1b Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 20 May 2024 15:28:10 +0300 Subject: [PATCH 11/67] squash! --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From a7b1e3eda1c108fb1d79a356926cf9e37f7ed4dc Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 23 May 2024 11:52:25 +0300 Subject: [PATCH 12/67] squash! --- __app__/.gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/__app__/.gitignore b/__app__/.gitignore index fbbe2ef..3217767 100644 --- a/__app__/.gitignore +++ b/__app__/.gitignore @@ -22,7 +22,6 @@ project.lock.json appsettings.json local.settings.json -node_modules dist # Local python packages From d16be4323fc45ba0d3e90741c49f0afc2da55623 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 23 May 2024 12:55:27 +0300 Subject: [PATCH 13/67] squash! --- .gitignore | 2 -- __app__/.gitignore | 2 -- 2 files changed, 4 deletions(-) diff --git a/.gitignore b/.gitignore index 63b7463..e96b2af 100644 --- a/.gitignore +++ b/.gitignore @@ -85,10 +85,8 @@ celerybeat-schedule *.sage.py # Environments -.env .venv env/ -venv/ ENV/ env.bak/ venv.bak/ diff --git a/__app__/.gitignore b/__app__/.gitignore index 3217767..ed9f805 100644 --- a/__app__/.gitignore +++ b/__app__/.gitignore @@ -28,10 +28,8 @@ dist .python_packages/ # Python Environments -.env .venv env/ -venv/ ENV/ env.bak/ venv.bak/ From f202fde8dfa783d6f8a55a495f58fa873086bea3 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 25 May 2024 01:17:02 +0300 Subject: [PATCH 14/67] squash! --- .github/dependabot.yml | 14 ++++++++ .github/workflows/Dependabot.yml | 45 +++++++++++++++++++++++++ .github/workflows/GitHub.yml | 57 ++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/Dependabot.yml create mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4b4fcd7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +enable-beta-ecosystems: true + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/__app__" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml new file mode 100644 index 0000000..e6091e5 --- /dev/null +++ b/.github/workflows/Dependabot.yml @@ -0,0 +1,45 @@ +name: Dependabot + +concurrency: + group: Dependabot-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + security-events: write + contents: write + pull-requests: write + +on: + workflow_dispatch: + pull_request: + +jobs: + Approve: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.1.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + Merge: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.1.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml new file mode 100644 index 0000000..5e814e3 --- /dev/null +++ b/.github/workflows/GitHub.yml @@ -0,0 +1,57 @@ +name: GitHub + +concurrency: + group: GitHub-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + issues: write + pull-requests: write + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + Assign: + runs-on: ubuntu-latest + + env: + ADBLOCK: true + ASTRO_TELEMETRY_DISABLED: 1 + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 + AZURE_CORE_COLLECT_TELEMETRY: 0 + CHOOSENIM_NO_ANALYTICS: 1 + DIEZ_DO_NOT_TRACK: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 + DO_NOT_TRACK: 1 + ET_NO_TELEMETRY: 1 + GATSBY_TELEMETRY_DISABLED: 1 + GATSBY_TELEMETRY_OPTOUT: 1 + GATSBY_TELEMETRY_OPT_OUT: 1 + GRIT_TELEMETRY_DISABLED: 1 + HASURA_GRAPHQL_ENABLE_TELEMETRY: false + HINT_TELEMETRY: off + HOMEBREW_NO_ANALYTICS: 1 + INFLUXD_REPORTING_DISABLED: true + ITERATIVE_DO_NOT_TRACK: 1 + NEXT_TELEMETRY_DEBUG: 1 + NEXT_TELEMETRY_DISABLED: 1 + NG_CLI_ANALYTICS: false + NUXT_TELEMETRY_DISABLED: 1 + PIN_DO_NOT_TRACK: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + SAM_CLI_TELEMETRY: 0 + STNOUPGRADE: 1 + STRIPE_CLI_TELEMETRY_OPTOUT: 1 + TELEMETRY_DISABLED: 1 + + steps: + - uses: pozil/auto-assign-issue@v2.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: NikolaRHristov + numOfAssignee: 1 From b4e22cb1e51aa7d7ad6267bcfe48717863b20474 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 26 May 2024 14:19:37 +0300 Subject: [PATCH 15/67] squash! --- FUNDING.yml | 1 + README.md | 66 +++++++++++++++++++++--------------- SECURITY.md | 54 ++++++++++++++++++++--------- __app__/github/function.json | 32 ++++++++--------- __app__/host.json | 10 +++--- 5 files changed, 98 insertions(+), 65 deletions(-) create mode 100644 FUNDING.yml diff --git a/FUNDING.yml b/FUNDING.yml new file mode 100644 index 0000000..12f5195 --- /dev/null +++ b/FUNDING.yml @@ -0,0 +1 @@ +open_collective: code-editor-land diff --git a/README.md b/README.md index 566153a..701a01d 100644 --- a/README.md +++ b/README.md @@ -3,21 +3,23 @@ # Purpose This bot exists to automate the development process/workflow for -https://github.com/microsoft/vscode-python. It also acts as a simple demo of -a GitHub bot running on Azure. +https://github.com/microsoft/vscode-python. It also acts as a simple demo of a +GitHub bot running on Azure. This bot is what is known as an OAuth app and is not a GitHub app. The [differences](https://developer.github.com/apps/differences-between-apps/) come -down to simplicity in authentication and how widely can the bot be deployed. Since -this bot is only deployed for a single repository and the original author was -intimately familiar with OAuth apps that was the route taken. +down to simplicity in authentication and how widely can the bot be deployed. +Since this bot is only deployed for a single repository and the original author +was intimately familiar with OAuth apps that was the route taken. This bot also predates [GitHub Actions](https://developer.github.com/actions/) -being released. As such some things this bot does may be easier to do as an action. +being released. As such some things this bot does may be easier to do as an +action. Currently the bot will do the following things for you: -1. Add/remove the `classify` label based on whether any other status label is set. +1. Add/remove the `classify` label based on whether any other status label is + set. 1. When an issue is closed, remove any status-related labels, e.g. `needs PR` (with the idea that if an issue is re-opened then it needs to be re-evaluated as to why the issue is still open). @@ -30,19 +32,24 @@ Currently the bot will do the following things for you: You must set two environment variables for the bot to function: -1. `GH_SECRET`: [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). -1. `GH_AUTH`: [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) for the bot to make changes in your repo. +1. `GH_SECRET`: + [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). +1. `GH_AUTH`: + [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) + for the bot to make changes in your repo. -The [shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) +The +[shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) between GitHub and your bot is used to verify that the webhook payload actually -originated from GitHub for your repository and isn't malicious. This is important -as a malicious user could send fake webhook payloads to your bot and cause it to -make changes on the malicious user's behalf. +originated from GitHub for your repository and isn't malicious. This is +important as a malicious user could send fake webhook payloads to your bot and +cause it to make changes on the malicious user's behalf. -The [personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) +The +[personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) is to empower your bot to make changes to your repo on your behalf. You can use -a token from your personal GitHub account or create a fake bot account. Make sure -the token has the following scopes/permissions: +a token from your personal GitHub account or create a fake bot account. Make +sure the token has the following scopes/permissions: 1.`repo:public_repo` (if your repo is public; adjust accordingly for your needs) @@ -62,14 +69,19 @@ running on Python 3.7. # Contributing -This project welcomes contributions and suggestions. Most contributions require you to agree to a -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us -the rights to use your contribution. For details, visit https://cla.microsoft.com. - -When you submit a pull request, a CLA-bot will automatically determine whether you need to provide -a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions -provided by the bot. You will only need to do this once across all repos using our CLA. - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. For +details, visit https://cla.microsoft.com. + +When you submit a pull request, a CLA-bot will automatically determine whether +you need to provide a CLA and decorate the PR appropriately (e.g., label, +comment). Simply follow the instructions provided by the bot. You will only need +to do this once across all repos using our CLA. + +This project has adopted the +[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information see the +[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or +contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any +additional questions or comments. diff --git a/SECURITY.md b/SECURITY.md index 8a5d128..4fe08fa 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,33 +2,54 @@ ## Security -Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). - -If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)) of a security vulnerability, please report it to us as described below. +Microsoft takes the security of our software products and services seriously, +which includes all source code repositories managed through our GitHub +organizations, which include [Microsoft](https://github.com/Microsoft), +[Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), +[AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and +[our GitHub organizations](https://opensource.microsoft.com/). + +If you believe you have found a security vulnerability in any Microsoft-owned +repository that meets Microsoft's +[Microsoft's definition of a security vulnerability]() +of a security vulnerability, please report it to us as described below. ## Reporting Security Issues **Please do not report security vulnerabilities through public GitHub issues.** -Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). +Instead, please report them to the Microsoft Security Response Center (MSRC) at +[https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). -If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). +If you prefer to submit without logging in, send email to +[secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your +message with our PGP key; please download it from the the +[Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). -You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). +You should receive a response within 24 hours. If for some reason you do not, +please follow up via email to ensure we received your original message. +Additional information can be found at +[microsoft.com/msrc](https://www.microsoft.com/msrc). -Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: +Please include the requested information listed below (as much as you can +provide) to help us better understand the nature and scope of the possible +issue: - * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) - * Full paths of source file(s) related to the manifestation of the issue - * The location of the affected source code (tag/branch/commit or direct URL) - * Any special configuration required to reproduce the issue - * Step-by-step instructions to reproduce the issue - * Proof-of-concept or exploit code (if possible) - * Impact of the issue, including how an attacker might exploit the issue +- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, + etc.) +- Full paths of source file(s) related to the manifestation of the issue +- The location of the affected source code (tag/branch/commit or direct URL) +- Any special configuration required to reproduce the issue +- Step-by-step instructions to reproduce the issue +- Proof-of-concept or exploit code (if possible) +- Impact of the issue, including how an attacker might exploit the issue This information will help us triage your report more quickly. -If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. +If you are reporting for a bug bounty, more complete reports can contribute to a +higher bounty award. Please visit our +[Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more +details about our active programs. ## Preferred Languages @@ -36,6 +57,7 @@ We prefer all communications to be in English. ## Policy -Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). +Microsoft follows the principle of +[Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). diff --git a/__app__/github/function.json b/__app__/github/function.json index 9dc8d3f..d506eb3 100644 --- a/__app__/github/function.json +++ b/__app__/github/function.json @@ -1,19 +1,17 @@ { - "scriptFile": "__init__.py", - "bindings": [ - { - "authLevel": "function", - "type": "httpTrigger", - "direction": "in", - "name": "req", - "methods": [ - "post" - ] - }, - { - "type": "http", - "direction": "out", - "name": "$return" - } - ] + "scriptFile": "__init__.py", + "bindings": [ + { + "authLevel": "function", + "type": "httpTrigger", + "direction": "in", + "name": "req", + "methods": ["post"] + }, + { + "type": "http", + "direction": "out", + "name": "$return" + } + ] } diff --git a/__app__/host.json b/__app__/host.json index f4458ea..f9ec075 100644 --- a/__app__/host.json +++ b/__app__/host.json @@ -1,7 +1,7 @@ { - "version": "2.0", - "extensionBundle": { - "id": "Microsoft.Azure.Functions.ExtensionBundle", - "version": "[1.*, 2.0.0)" - } + "version": "2.0", + "extensionBundle": { + "id": "Microsoft.Azure.Functions.ExtensionBundle", + "version": "[1.*, 2.0.0)" + } } From 5668fe7f8d5d95e56fc04abe5873d17592ca4c9f Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 26 May 2024 22:17:44 +0300 Subject: [PATCH 16/67] squash! --- FUNDING.yml => .github/FUNDING.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename FUNDING.yml => .github/FUNDING.yml (100%) diff --git a/FUNDING.yml b/.github/FUNDING.yml similarity index 100% rename from FUNDING.yml rename to .github/FUNDING.yml From 4c2252a5048ad8d567b0bfbe2b3114e282abc922 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 27 May 2024 17:01:29 +0300 Subject: [PATCH 17/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 67180a781aad493f20b4ca6bc76fdac054b0b634 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 6 Jun 2024 01:33:16 +0300 Subject: [PATCH 18/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From bd9dabfdab1443562b2495f2db4b145dba5d8b95 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 8 Jun 2024 07:34:40 +0300 Subject: [PATCH 19/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 0c6ee47018063d330d8a69198e1d463cdd2c146c Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 9 Jun 2024 19:19:10 +0300 Subject: [PATCH 20/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 7c789bb26490db67b731d4d5faaff28982cce5f8 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 13 Jun 2024 18:30:03 +0300 Subject: [PATCH 21/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 8f08c595799368bdd9f725d5f073697a44e0f8ed Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 16 Jun 2024 16:43:32 +0300 Subject: [PATCH 22/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From a8c5351ef0aaf4bb6814e4280186da8c0d2cb4d0 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 17 Jun 2024 17:52:36 +0300 Subject: [PATCH 23/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 8a24e0068834cd4b6dc76777b20ffc6e11245103 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 19 Jun 2024 21:57:36 +0300 Subject: [PATCH 24/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 2740630b0869a05c2cd3c6f99b742422d55d87b4 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 8 Jul 2024 16:15:41 +0300 Subject: [PATCH 25/67] squash! --- CODE_OF_CONDUCT.md | 146 +++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 33 +++++----- 2 files changed, 162 insertions(+), 17 deletions(-) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..d35c668 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,146 @@ +# Code of Conduct + +## Our Pledge + +Welcome to our community! We are committed to creating a welcoming and inclusive +environment for all contributors. As members, contributors, and leaders, we +pledge to make participation in our community a harassment-free experience for +everyone, regardless of: + +- Age +- Body size +- Visible or invisible disability +- Ethnicity +- Sex characteristics +- Gender identity and expression +- Level of experience +- Education +- Socio-economic status +- Nationality +- Personal appearance +- Race +- Caste +- Color +- Religion +- Sexual identity and orientation + +We promise to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +- Focusing on what is best not just for us as individuals but for the overall + community + +Examples of unacceptable behavior include: + +- The use of sexualized language or imagery, and sexual attention or advances + of any kind +- Trolling, insulting, or derogatory comments, and personal or political + attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, + without their explicit permission +- Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior. They will take appropriate and fair corrective action in +response to any behavior they deem inappropriate, threatening, offensive, or +harmful. This may include removing, editing, or rejecting comments, commits, +code, wiki edits, issues, and other contributions that do not align with this +Code of Conduct. Community leaders will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +Community@PlayForm.Cloud. All complaints will be reviewed and investigated +promptly and fairly. All community leaders are obligated to respect the privacy +and security of the reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series of +actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or permanent +ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within the +community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.1, available at +[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder][Mozilla CoC]. + +For answers to common questions about this code of conduct, see the FAQ at +[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at +[https://www.contributor-covenant.org/translations][translations]. + +[homepage]: https://www.contributor-covenant.org +[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html +[Mozilla CoC]: https://github.com/mozilla/diversity +[FAQ]: https://www.contributor-covenant.org/faq +[translations]: https://www.contributor-covenant.org/translations + +Thank you for being part of our community and helping us create a safe and +respectful environment for everyone! diff --git a/LICENSE b/LICENSE index 2107107..f236d76 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,20 @@ - MIT License +MIT License - Copyright (c) Microsoft Corporation. All rights reserved. +Copyright (c) 2023-2024 PlayForm - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. From d0ad3ba31cb991f71586f47ff56a6e6b356073f4 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 9 Jul 2024 22:09:14 +0300 Subject: [PATCH 26/67] squash! --- .github/workflows/Dependabot.yml | 4 ++-- .github/workflows/GitHub.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml index e6091e5..387fece 100644 --- a/.github/workflows/Dependabot.yml +++ b/.github/workflows/Dependabot.yml @@ -20,7 +20,7 @@ jobs: if: ${{ github.actor == 'dependabot[bot]' }} steps: - - uses: dependabot/fetch-metadata@v2.1.0 + - uses: dependabot/fetch-metadata@v2.2.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" @@ -35,7 +35,7 @@ jobs: if: ${{ github.actor == 'dependabot[bot]' }} steps: - - uses: dependabot/fetch-metadata@v2.1.0 + - uses: dependabot/fetch-metadata@v2.2.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml index 5e814e3..7b1e399 100644 --- a/.github/workflows/GitHub.yml +++ b/.github/workflows/GitHub.yml @@ -48,6 +48,7 @@ jobs: STNOUPGRADE: 1 STRIPE_CLI_TELEMETRY_OPTOUT: 1 TELEMETRY_DISABLED: 1 + TERRAFORM_TELEMETRY: 0 steps: - uses: pozil/auto-assign-issue@v2.0.0 From 26086a9e431934bb97de5bb32acbf5c60eb8d844 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 12 Jul 2024 02:08:00 +0300 Subject: [PATCH 27/67] squash! --- .coveragerc | 7 - .github/FUNDING.yml | 1 - .github/dependabot.yml | 14 -- .github/workflows/Dependabot.yml | 45 ------ .github/workflows/GitHub.yml | 58 ------- .github/workflows/main.yml | 96 ------------ .gitignore | 107 ------------- CODE_OF_CONDUCT.md | 146 ----------------- LICENSE | 20 --- README.md | 75 --------- SECURITY.md | 41 ----- __app__/.funcignore | 1 - __app__/.gitignore | 43 ----- __app__/__init__.py | 1 - __app__/ghutils/__init__.py | 0 __app__/ghutils/ping.py | 14 -- __app__/ghutils/server.py | 21 --- __app__/github/__init__.py | 36 ----- __app__/github/classify.py | 80 ---------- __app__/github/closed.py | 22 --- __app__/github/function.json | 19 --- __app__/github/labels.py | 41 ----- __app__/host.json | 7 - __app__/requirements.in | 2 - __app__/requirements.txt | 88 ----------- dev-requirements.in | 11 -- dev-requirements.txt | 261 ------------------------------- mypy.ini | 7 - 28 files changed, 1264 deletions(-) delete mode 100644 .coveragerc delete mode 100644 .github/FUNDING.yml delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/Dependabot.yml delete mode 100644 .github/workflows/GitHub.yml delete mode 100644 .github/workflows/main.yml delete mode 100644 .gitignore delete mode 100644 CODE_OF_CONDUCT.md delete mode 100644 LICENSE delete mode 100644 README.md delete mode 100644 SECURITY.md delete mode 100644 __app__/.funcignore delete mode 100644 __app__/.gitignore delete mode 100644 __app__/__init__.py delete mode 100644 __app__/ghutils/__init__.py delete mode 100644 __app__/ghutils/ping.py delete mode 100644 __app__/ghutils/server.py delete mode 100644 __app__/github/__init__.py delete mode 100644 __app__/github/classify.py delete mode 100644 __app__/github/closed.py delete mode 100644 __app__/github/function.json delete mode 100644 __app__/github/labels.py delete mode 100644 __app__/host.json delete mode 100644 __app__/requirements.in delete mode 100644 __app__/requirements.txt delete mode 100644 dev-requirements.in delete mode 100644 dev-requirements.txt delete mode 100644 mypy.ini diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 8ba58c5..0000000 --- a/.coveragerc +++ /dev/null @@ -1,7 +0,0 @@ -[run] -branch = True -source = - __app__ - -[report] -fail_under = 100 diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 12f5195..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -open_collective: code-editor-land diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4b4fcd7..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -enable-beta-ecosystems: true - -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "pip" - directory: "/__app__" - schedule: - interval: "daily" - versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml deleted file mode 100644 index 387fece..0000000 --- a/.github/workflows/Dependabot.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Dependabot - -concurrency: - group: Dependabot-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - security-events: write - contents: write - pull-requests: write - -on: - workflow_dispatch: - pull_request: - -jobs: - Approve: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - Merge: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml deleted file mode 100644 index 7b1e399..0000000 --- a/.github/workflows/GitHub.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: GitHub - -concurrency: - group: GitHub-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - issues: write - pull-requests: write - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - Assign: - runs-on: ubuntu-latest - - env: - ADBLOCK: true - ASTRO_TELEMETRY_DISABLED: 1 - AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 - AZURE_CORE_COLLECT_TELEMETRY: 0 - CHOOSENIM_NO_ANALYTICS: 1 - DIEZ_DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - DO_NOT_TRACK: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPTOUT: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GRIT_TELEMETRY_DISABLED: 1 - HASURA_GRAPHQL_ENABLE_TELEMETRY: false - HINT_TELEMETRY: off - HOMEBREW_NO_ANALYTICS: 1 - INFLUXD_REPORTING_DISABLED: true - ITERATIVE_DO_NOT_TRACK: 1 - NEXT_TELEMETRY_DEBUG: 1 - NEXT_TELEMETRY_DISABLED: 1 - NG_CLI_ANALYTICS: false - NUXT_TELEMETRY_DISABLED: 1 - PIN_DO_NOT_TRACK: 1 - POWERSHELL_TELEMETRY_OPTOUT: 1 - SAM_CLI_TELEMETRY: 0 - STNOUPGRADE: 1 - STRIPE_CLI_TELEMETRY_OPTOUT: 1 - TELEMETRY_DISABLED: 1 - TERRAFORM_TELEMETRY: 0 - - steps: - - uses: pozil/auto-assign-issue@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: NikolaRHristov - numOfAssignee: 1 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 63b7463..0000000 --- a/.gitignore +++ /dev/null @@ -1,107 +0,0 @@ -# Functions -pvscbot*.zip - -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index d35c668..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,146 +0,0 @@ -# Code of Conduct - -## Our Pledge - -Welcome to our community! We are committed to creating a welcoming and inclusive -environment for all contributors. As members, contributors, and leaders, we -pledge to make participation in our community a harassment-free experience for -everyone, regardless of: - -- Age -- Body size -- Visible or invisible disability -- Ethnicity -- Sex characteristics -- Gender identity and expression -- Level of experience -- Education -- Socio-economic status -- Nationality -- Personal appearance -- Race -- Caste -- Color -- Religion -- Sexual identity and orientation - -We promise to act and interact in ways that contribute to an open, welcoming, -diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our -community include: - -- Demonstrating empathy and kindness toward other people -- Being respectful of differing opinions, viewpoints, and experiences -- Giving and gracefully accepting constructive feedback -- Accepting responsibility and apologizing to those affected by our mistakes, - and learning from the experience -- Focusing on what is best not just for us as individuals but for the overall - community - -Examples of unacceptable behavior include: - -- The use of sexualized language or imagery, and sexual attention or advances - of any kind -- Trolling, insulting, or derogatory comments, and personal or political - attacks -- Public or private harassment -- Publishing others' private information, such as a physical or email address, - without their explicit permission -- Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Enforcement Responsibilities - -Community leaders are responsible for clarifying and enforcing our standards of -acceptable behavior. They will take appropriate and fair corrective action in -response to any behavior they deem inappropriate, threatening, offensive, or -harmful. This may include removing, editing, or rejecting comments, commits, -code, wiki edits, issues, and other contributions that do not align with this -Code of Conduct. Community leaders will communicate reasons for moderation -decisions when appropriate. - -## Scope - -This Code of Conduct applies within all community spaces, and also applies when -an individual is officially representing the community in public spaces. -Examples of representing our community include using an official e-mail address, -posting via an official social media account, or acting as an appointed -representative at an online or offline event. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at -Community@PlayForm.Cloud. All complaints will be reviewed and investigated -promptly and fairly. All community leaders are obligated to respect the privacy -and security of the reporter of any incident. - -## Enforcement Guidelines - -Community leaders will follow these Community Impact Guidelines in determining -the consequences for any action they deem in violation of this Code of Conduct: - -### 1. Correction - -**Community Impact**: Use of inappropriate language or other behavior deemed -unprofessional or unwelcome in the community. - -**Consequence**: A private, written warning from community leaders, providing -clarity around the nature of the violation and an explanation of why the -behavior was inappropriate. A public apology may be requested. - -### 2. Warning - -**Community Impact**: A violation through a single incident or series of -actions. - -**Consequence**: A warning with consequences for continued behavior. No -interaction with the people involved, including unsolicited interaction with -those enforcing the Code of Conduct, for a specified period of time. This -includes avoiding interactions in community spaces as well as external channels -like social media. Violating these terms may lead to a temporary or permanent -ban. - -### 3. Temporary Ban - -**Community Impact**: A serious violation of community standards, including -sustained inappropriate behavior. - -**Consequence**: A temporary ban from any sort of interaction or public -communication with the community for a specified period of time. No public or -private interaction with the people involved, including unsolicited interaction -with those enforcing the Code of Conduct, is allowed during this period. -Violating these terms may lead to a permanent ban. - -### 4. Permanent Ban - -**Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an -individual, or aggression toward or disparagement of classes of individuals. - -**Consequence**: A permanent ban from any sort of public interaction within the -community. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], -version 2.1, available at -[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. -Community Impact Guidelines were inspired by [Mozilla's code of conduct -enforcement ladder][Mozilla CoC]. - -For answers to common questions about this code of conduct, see the FAQ at -[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at -[https://www.contributor-covenant.org/translations][translations]. - -[homepage]: https://www.contributor-covenant.org -[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html -[Mozilla CoC]: https://github.com/mozilla/diversity -[FAQ]: https://www.contributor-covenant.org/faq -[translations]: https://www.contributor-covenant.org/translations - -Thank you for being part of our community and helping us create a safe and -respectful environment for everyone! diff --git a/LICENSE b/LICENSE deleted file mode 100644 index f236d76..0000000 --- a/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -MIT License - -Copyright (c) 2023-2024 PlayForm - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index 566153a..0000000 --- a/README.md +++ /dev/null @@ -1,75 +0,0 @@ -[![CI](https://github.com/microsoft/pvscbot/workflows/CI/badge.svg?branch=master&event=push "CI status badge")](https://github.com/microsoft/pvscbot/actions?query=branch%3Amaster+event%3Apush+workflow%3ACI) - -# Purpose - -This bot exists to automate the development process/workflow for -https://github.com/microsoft/vscode-python. It also acts as a simple demo of -a GitHub bot running on Azure. - -This bot is what is known as an OAuth app and is not a GitHub app. The -[differences](https://developer.github.com/apps/differences-between-apps/) come -down to simplicity in authentication and how widely can the bot be deployed. Since -this bot is only deployed for a single repository and the original author was -intimately familiar with OAuth apps that was the route taken. - -This bot also predates [GitHub Actions](https://developer.github.com/actions/) -being released. As such some things this bot does may be easier to do as an action. - -Currently the bot will do the following things for you: - -1. Add/remove the `classify` label based on whether any other status label is set. -1. When an issue is closed, remove any status-related labels, e.g. `needs PR` - (with the idea that if an issue is re-opened then it needs to be re-evaluated - as to why the issue is still open). - -# Deployment - -## Generically - -### On the deployment/hosting side - -You must set two environment variables for the bot to function: - -1. `GH_SECRET`: [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). -1. `GH_AUTH`: [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) for the bot to make changes in your repo. - -The [shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) -between GitHub and your bot is used to verify that the webhook payload actually -originated from GitHub for your repository and isn't malicious. This is important -as a malicious user could send fake webhook payloads to your bot and cause it to -make changes on the malicious user's behalf. - -The [personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) -is to empower your bot to make changes to your repo on your behalf. You can use -a token from your personal GitHub account or create a fake bot account. Make sure -the token has the following scopes/permissions: - -1.`repo:public_repo` (if your repo is public; adjust accordingly for your needs) - -### On the GitHub side - -When [creating the webhook](https://developer.github.com/webhooks/creating/) you -need to specify what events to send to your endpoint. This bot supports the -following events: - -1. `Issues` - -## Azure - -The bot is currently written to support -[Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/) -running on Python 3.7. - -# Contributing - -This project welcomes contributions and suggestions. Most contributions require you to agree to a -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us -the rights to use your contribution. For details, visit https://cla.microsoft.com. - -When you submit a pull request, a CLA-bot will automatically determine whether you need to provide -a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions -provided by the bot. You will only need to do this once across all repos using our CLA. - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 8a5d128..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,41 +0,0 @@ - - -## Security - -Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). - -If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)) of a security vulnerability, please report it to us as described below. - -## Reporting Security Issues - -**Please do not report security vulnerabilities through public GitHub issues.** - -Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). - -If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). - -You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). - -Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: - - * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) - * Full paths of source file(s) related to the manifestation of the issue - * The location of the affected source code (tag/branch/commit or direct URL) - * Any special configuration required to reproduce the issue - * Step-by-step instructions to reproduce the issue - * Proof-of-concept or exploit code (if possible) - * Impact of the issue, including how an attacker might exploit the issue - -This information will help us triage your report more quickly. - -If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. - -## Preferred Languages - -We prefer all communications to be in English. - -## Policy - -Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). - - diff --git a/__app__/.funcignore b/__app__/.funcignore deleted file mode 100644 index 8b13789..0000000 --- a/__app__/.funcignore +++ /dev/null @@ -1 +0,0 @@ - diff --git a/__app__/.gitignore b/__app__/.gitignore deleted file mode 100644 index fbbe2ef..0000000 --- a/__app__/.gitignore +++ /dev/null @@ -1,43 +0,0 @@ -bin -obj -csx -.vs -edge -Publish - -*.user -*.suo -*.cscfg -*.Cache -project.lock.json - -/packages -/TestResults - -/tools/NuGet.exe -/App_Data -/secrets -/data -.secrets -appsettings.json -local.settings.json - -node_modules -dist - -# Local python packages -.python_packages/ - -# Python Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class \ No newline at end of file diff --git a/__app__/__init__.py b/__app__/__init__.py deleted file mode 100644 index 8b13789..0000000 --- a/__app__/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/__app__/ghutils/__init__.py b/__app__/ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/__app__/ghutils/ping.py b/__app__/ghutils/ping.py deleted file mode 100644 index a2927c4..0000000 --- a/__app__/ghutils/ping.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing - - -router = gidgethub.routing.Router() - - -@router.register("ping") -async def ping(*args, logger=None, **kwargs): - """Respond to the 'ping' event by doing nothing.""" - if logger: - logger.info("'ping' event received") diff --git a/__app__/ghutils/server.py b/__app__/ghutils/server.py deleted file mode 100644 index ffca514..0000000 --- a/__app__/ghutils/server.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import asyncio - -import gidgethub.sansio - - -async def serve(gh, router, headers, body, *, secret=None, logger=None, pause=1): - """Process the webhook event based on the raw HTTP request.""" - event = gidgethub.sansio.Event.from_http(headers, body, secret=secret) - if logger: - logger.info(f"GitHub delivery ID: {event.delivery_id}") - # Give GitHub some time to reach internal consistency. - await asyncio.sleep(pause) - await router.dispatch(event, gh, logger=logger) - if logger: - try: - logger.info(f"GitHub requests remaining: {gh.rate_limit.remaining}") - except AttributeError: - logger.info("No rate limit data provided") diff --git a/__app__/github/__init__.py b/__app__/github/__init__.py deleted file mode 100644 index d0ea620..0000000 --- a/__app__/github/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -import asyncio -import logging -import os - -import aiohttp -import azure.functions as func -from gidgethub import aiohttp as gh_aiohttp -from gidgethub import routing - -from ..ghutils import ping -from ..ghutils import server -from . import classify, closed - - -router = routing.Router(classify.router, closed.router, ping.router) - -CLIENT_SESSION = None - - -async def main(req: func.HttpRequest) -> func.HttpResponse: - global CLIENT_SESSION - - try: - if CLIENT_SESSION is None: - CLIENT_SESSION = aiohttp.ClientSession() - secret = os.environ.get("GH_SECRET") - oauth_token = os.environ.get("GH_AUTH") - body = req.get_body() - gh = gh_aiohttp.GitHubAPI( - CLIENT_SESSION, "Microsoft/pvscbot", oauth_token=oauth_token - ) - await server.serve(gh, router, req.headers, body, secret=secret, logger=logging) - return func.HttpResponse(status_code=200) - except Exception: - logging.exception("Unhandled exception") - return func.HttpResponse(status_code=500) diff --git a/__app__/github/classify.py b/__app__/github/classify.py deleted file mode 100644 index ad5d144..0000000 --- a/__app__/github/classify.py +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing - -from . import labels - -router = gidgethub.routing.Router() - - -def is_opened(event): - return event.data["issue"]["state"] == "open" - - -def has_classify(event): - return any( - label["name"] == labels.Status.classify.value - for label in event.data["issue"]["labels"] - ) - - -async def add_classify_label(gh, event): - await gh.post( - event.data["issue"]["labels_url"], - data={"labels": [labels.Status.classify.value]}, - ) - - -def classify_unneeded(labels_to_check): - """Determine if an existing label negates needing 'classify'.""" - status_labels = set(labels.STATUS_LABELS) | labels.CLASSIFICATION_LABELS - status_labels.add(labels.Team.data_science.value) - return any(label in status_labels for label in labels_to_check) - - -# Removing 'classify' from closed issues is taken care of in the 'closed' submodule. -@router.register("issues", action="opened") -@router.register("issues", action="reopened") -async def classify_new_issue(event, gh, *args, **kwargs): - """Add the 'classify' label.""" - issue = event.data["issue"] - existing_labels = {label["name"] for label in issue["labels"]} - if classify_unneeded(existing_labels): - # Teammate pre-classified the issue when creating it. - return - async for label in gh.getiter(issue["labels_url"]): - if classify_unneeded({label["name"]}): - # Issue already has a status label. - return - else: - await add_classify_label(gh, event) - - -@router.register("issues", action="labeled") -async def added_label(event, gh, *args, **kwargs): - """Remove 'classify' if it is no longer required.""" - added_label = event.data["label"]["name"] - if not is_opened(event): - return - elif added_label == labels.Status.classify.value: - return - elif has_classify(event): - if classify_unneeded({added_label}): - try: - await gh.delete( - event.data["issue"]["labels_url"], - {"name": labels.Status.classify.value}, - ) - except gidgethub.BadRequest as exc: - if not "Label does not exist" in str(exc): - raise - - -@router.register("issues", action="unlabeled") -async def removed_label(event, gh, *args, **kwargs): - remaining_labels = {label["name"] for label in event.data["issue"]["labels"]} - if not is_opened(event) or classify_unneeded(remaining_labels): - return - else: - await add_classify_label(gh, event) diff --git a/__app__/github/closed.py b/__app__/github/closed.py deleted file mode 100644 index fbf5da8..0000000 --- a/__app__/github/closed.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing - -from . import labels - - -router = gidgethub.routing.Router() - -ALL_STATUS_LABELS = {label.value for label in labels.Status} - - -@router.register("issues", action="closed") -async def remove_status_labels(event, gh, *args, **kwargs): - """Remove all status-related labels.""" - labels = event.data["issue"]["labels"] - labels_url = event.data["issue"]["labels_url"] - for label in labels: - label_name = label["name"] - if label_name in ALL_STATUS_LABELS: - await gh.delete(labels_url, {"name": label_name}) diff --git a/__app__/github/function.json b/__app__/github/function.json deleted file mode 100644 index 9dc8d3f..0000000 --- a/__app__/github/function.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "scriptFile": "__init__.py", - "bindings": [ - { - "authLevel": "function", - "type": "httpTrigger", - "direction": "in", - "name": "req", - "methods": [ - "post" - ] - }, - { - "type": "http", - "direction": "out", - "name": "$return" - } - ] -} diff --git a/__app__/github/labels.py b/__app__/github/labels.py deleted file mode 100644 index e998855..0000000 --- a/__app__/github/labels.py +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import enum - - -@enum.unique -class Status(enum.Enum): - classify = "classify" - triage = "triage" - investigating = "investigating" - needs_upstream_fix = "needs upstream fix" - needs_decision = "needs decision" - needs_spike = "needs spike" - needs_spec = "needs spec" - needs_PR = "needs PR" - experimenting = "experimenting" - - -STATUS_LABELS = frozenset(e.value for e in Status.__members__.values()) - - -@enum.unique -class Classification(enum.Enum): - epic = "Epic" - meta = "meta" - release_plan = "release plan" - - -CLASSIFICATION_LABELS = frozenset(e.value for e in Classification.__members__.values()) - - -@enum.unique -class Skip(enum.Enum): - news = "skip news" - - -@enum.unique -class Team(enum.Enum): - data_science = "data science" - xteam = "xteam" diff --git a/__app__/host.json b/__app__/host.json deleted file mode 100644 index f4458ea..0000000 --- a/__app__/host.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": "2.0", - "extensionBundle": { - "id": "Microsoft.Azure.Functions.ExtensionBundle", - "version": "[1.*, 2.0.0)" - } -} diff --git a/__app__/requirements.in b/__app__/requirements.in deleted file mode 100644 index 77fcca9..0000000 --- a/__app__/requirements.in +++ /dev/null @@ -1,2 +0,0 @@ -gidgethub -aiohttp diff --git a/__app__/requirements.txt b/__app__/requirements.txt deleted file mode 100644 index 75b05ae..0000000 --- a/__app__/requirements.txt +++ /dev/null @@ -1,88 +0,0 @@ -# -# This file is autogenerated by pip-compile -# To update, run: -# -# pip-compile --generate-hashes -# -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 \ - # via aiohttp -attrs==19.3.0 \ - --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ - --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 \ - # via aiohttp -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 \ - # via aiohttp -gidgethub==3.3.0 \ - --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ - --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c \ - # via aiohttp -idna==2.8 \ - --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ - --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c \ - # via idna-ssl, yarl -multidict==4.7.4 \ - --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ - --hash=sha256:26502cefa86d79b86752e96639352c7247846515c864d7c2eb85d036752b643c \ - --hash=sha256:4fba5204d32d5c52439f88437d33ad14b5f228e25072a192453f658bddfe45a7 \ - --hash=sha256:527124ef435f39a37b279653ad0238ff606b58328ca7989a6df372fd75d7fe26 \ - --hash=sha256:5414f388ffd78c57e77bd253cf829373721f450613de53dc85a08e34d806e8eb \ - --hash=sha256:5eee66f882ab35674944dfa0d28b57fa51e160b4dce0ce19e47f495fdae70703 \ - --hash=sha256:63810343ea07f5cd86ba66ab66706243a6f5af075eea50c01e39b4ad6bc3c57a \ - --hash=sha256:6bd10adf9f0d6a98ccc792ab6f83d18674775986ba9bacd376b643fe35633357 \ - --hash=sha256:83c6ddf0add57c6b8a7de0bc7e2d656be3eefeff7c922af9a9aae7e49f225625 \ - --hash=sha256:93166e0f5379cf6cd29746989f8a594fa7204dcae2e9335ddba39c870a287e1c \ - --hash=sha256:9a7b115ee0b9b92d10ebc246811d8f55d0c57e82dbb6a26b23c9a9a6ad40ce0c \ - --hash=sha256:a38baa3046cce174a07a59952c9f876ae8875ef3559709639c17fdf21f7b30dd \ - --hash=sha256:a6d219f49821f4b2c85c6d426346a5d84dab6daa6f85ca3da6c00ed05b54022d \ - --hash=sha256:a8ed33e8f9b67e3b592c56567135bb42e7e0e97417a4b6a771e60898dfd5182b \ - --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ - --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ - --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 \ - # via aiohttp, yarl -typing-extensions==3.7.4.1 \ - --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ - --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ - --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 \ - # via aiohttp -uritemplate==3.0.1 \ - --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ - --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae \ - # via gidgethub -yarl==1.4.2 \ - --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ - --hash=sha256:0ca2f395591bbd85ddd50a82eb1fde9c1066fafe888c5c7cc1d810cf03fd3cc6 \ - --hash=sha256:2098a4b4b9d75ee352807a95cdf5f10180db903bc5b7270715c6bbe2551f64ce \ - --hash=sha256:25e66e5e2007c7a39541ca13b559cd8ebc2ad8fe00ea94a2aad28a9b1e44e5ae \ - --hash=sha256:26d7c90cb04dee1665282a5d1a998defc1a9e012fdca0f33396f81508f49696d \ - --hash=sha256:308b98b0c8cd1dfef1a0311dc5e38ae8f9b58349226aa0533f15a16717ad702f \ - --hash=sha256:3ce3d4f7c6b69c4e4f0704b32eca8123b9c58ae91af740481aa57d7857b5e41b \ - --hash=sha256:58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b \ - --hash=sha256:5b10eb0e7f044cf0b035112446b26a3a2946bca9d7d7edb5e54a2ad2f6652abb \ - --hash=sha256:6faa19d3824c21bcbfdfce5171e193c8b4ddafdf0ac3f129ccf0cdfcb083e462 \ - --hash=sha256:944494be42fa630134bf907714d40207e646fd5a94423c90d5b514f7b0713fea \ - --hash=sha256:a161de7e50224e8e3de6e184707476b5a989037dcb24292b391a3d66ff158e70 \ - --hash=sha256:a4844ebb2be14768f7994f2017f70aca39d658a96c786211be5ddbe1c68794c1 \ - --hash=sha256:c2b509ac3d4b988ae8769901c66345425e361d518aecbe4acbfc2567e416626a \ - --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ - --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ - --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 \ - # via aiohttp diff --git a/dev-requirements.in b/dev-requirements.in deleted file mode 100644 index ade9802..0000000 --- a/dev-requirements.in +++ /dev/null @@ -1,11 +0,0 @@ --r __app__/requirements.txt -azure-functions -# Development -asynctest -black -importlib_resources -mypy -pip-tools -pytest -pytest-cov -pytest-asyncio diff --git a/dev-requirements.txt b/dev-requirements.txt deleted file mode 100644 index 232ea46..0000000 --- a/dev-requirements.txt +++ /dev/null @@ -1,261 +0,0 @@ -# -# This file is autogenerated by pip-compile -# To update, run: -# -# pip-compile --generate-hashes '.\dev-requirements.in' -# -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 -appdirs==1.4.3 \ - --hash=sha256:9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92 \ - --hash=sha256:d8b24664561d0d34ddfaec54636d502d7cea6e29c3eaf68f3df6180863e2166e \ - # via black -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 -asynctest==0.13.0 \ - --hash=sha256:5da6118a7e6d6b54d83a8f7197769d046922a44d2a99c21382f0a6e4fadae676 \ - --hash=sha256:c27862842d15d83e6a34eb0b2866c323880eb3a75e4485b079ea11748fd77fac -atomicwrites==1.3.0 \ - --hash=sha256:03472c30eb2c5d1ba9227e4c2ca66ab8287fbfbbda3888aa93dc2e28fc6811b4 \ - --hash=sha256:75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6 \ - # via pytest -attrs==19.3.0 \ - --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ - --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 -azure-functions==1.0.7 \ - --hash=sha256:88997fbb7e8ff5b36a71cbadee6c8abbce6c4525942a6f997e24d6cf23fac23b \ - --hash=sha256:b65cd543736640d26ff95bfc86438e9c6afade431fa50190334fca757cebf565 -black==19.10b0 \ - --hash=sha256:1b30e59be925fafc1ee4565e5e08abef6b03fe455102883820fe5ee2e4734e0b \ - --hash=sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539 -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 -click==7.0 \ - --hash=sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13 \ - --hash=sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7 \ - # via black, pip-tools -colorama==0.4.3 \ - --hash=sha256:7d73d2a99753107a36ac6b455ee49046802e59d9d076ef8e47b61499fa29afff \ - --hash=sha256:e96da0d330793e2cb9485e9ddfd918d456036c7149416295932478192f4436a1 \ - # via pytest -coverage==5.0.3 \ - --hash=sha256:15cf13a6896048d6d947bf7d222f36e4809ab926894beb748fc9caa14605d9c3 \ - --hash=sha256:1daa3eceed220f9fdb80d5ff950dd95112cd27f70d004c7918ca6dfc6c47054c \ - --hash=sha256:1e44a022500d944d42f94df76727ba3fc0a5c0b672c358b61067abb88caee7a0 \ - --hash=sha256:25dbf1110d70bab68a74b4b9d74f30e99b177cde3388e07cc7272f2168bd1477 \ - --hash=sha256:3230d1003eec018ad4a472d254991e34241e0bbd513e97a29727c7c2f637bd2a \ - --hash=sha256:3dbb72eaeea5763676a1a1efd9b427a048c97c39ed92e13336e726117d0b72bf \ - --hash=sha256:5012d3b8d5a500834783689a5d2292fe06ec75dc86ee1ccdad04b6f5bf231691 \ - --hash=sha256:51bc7710b13a2ae0c726f69756cf7ffd4362f4ac36546e243136187cfcc8aa73 \ - --hash=sha256:527b4f316e6bf7755082a783726da20671a0cc388b786a64417780b90565b987 \ - --hash=sha256:722e4557c8039aad9592c6a4213db75da08c2cd9945320220634f637251c3894 \ - --hash=sha256:76e2057e8ffba5472fd28a3a010431fd9e928885ff480cb278877c6e9943cc2e \ - --hash=sha256:77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef \ - --hash=sha256:7afad9835e7a651d3551eab18cbc0fdb888f0a6136169fbef0662d9cdc9987cf \ - --hash=sha256:9bea19ac2f08672636350f203db89382121c9c2ade85d945953ef3c8cf9d2a68 \ - --hash=sha256:a8b8ac7876bc3598e43e2603f772d2353d9931709345ad6c1149009fd1bc81b8 \ - --hash=sha256:b0840b45187699affd4c6588286d429cd79a99d509fe3de0f209594669bb0954 \ - --hash=sha256:b26aaf69713e5674efbde4d728fb7124e429c9466aeaf5f4a7e9e699b12c9fe2 \ - --hash=sha256:b63dd43f455ba878e5e9f80ba4f748c0a2156dde6e0e6e690310e24d6e8caf40 \ - --hash=sha256:be18f4ae5a9e46edae3f329de2191747966a34a3d93046dbdf897319923923bc \ - --hash=sha256:c312e57847db2526bc92b9bfa78266bfbaabac3fdcd751df4d062cd4c23e46dc \ - --hash=sha256:c60097190fe9dc2b329a0eb03393e2e0829156a589bd732e70794c0dd804258e \ - --hash=sha256:c62a2143e1313944bf4a5ab34fd3b4be15367a02e9478b0ce800cb510e3bbb9d \ - --hash=sha256:cc1109f54a14d940b8512ee9f1c3975c181bbb200306c6d8b87d93376538782f \ - --hash=sha256:cd60f507c125ac0ad83f05803063bed27e50fa903b9c2cfee3f8a6867ca600fc \ - --hash=sha256:d513cc3db248e566e07a0da99c230aca3556d9b09ed02f420664e2da97eac301 \ - --hash=sha256:d649dc0bcace6fcdb446ae02b98798a856593b19b637c1b9af8edadf2b150bea \ - --hash=sha256:d7008a6796095a79544f4da1ee49418901961c97ca9e9d44904205ff7d6aa8cb \ - --hash=sha256:da93027835164b8223e8e5af2cf902a4c80ed93cb0909417234f4a9df3bcd9af \ - --hash=sha256:e69215621707119c6baf99bda014a45b999d37602cb7043d943c76a59b05bf52 \ - --hash=sha256:ea9525e0fef2de9208250d6c5aeeee0138921057cd67fcef90fbed49c4d62d37 \ - --hash=sha256:fca1669d464f0c9831fd10be2eef6b86f5ebd76c724d1e0706ebdff86bb4adf0 \ - # via pytest-cov -gidgethub==3.3.0 \ - --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ - --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c -idna==2.8 \ - --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ - --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c -importlib-metadata==1.4.0 \ - --hash=sha256:bdd9b7c397c273bcc9a11d6629a38487cd07154fa255a467bf704cd2c258e359 \ - --hash=sha256:f17c015735e1a88296994c0697ecea7e11db24290941983b08c9feb30921e6d8 \ - # via pluggy, pytest -importlib-resources==1.0.2 \ - --hash=sha256:6e2783b2538bd5a14678284a3962b0660c715e5a0f10243fd5e00a4b5974f50b \ - --hash=sha256:d3279fd0f6f847cced9f7acc19bd3e5df54d34f93a2e7bb5f238f81545787078 -more-itertools==8.1.0 \ - --hash=sha256:1a2a32c72400d365000412fe08eb4a24ebee89997c18d3d147544f70f5403b39 \ - --hash=sha256:c468adec578380b6281a114cb8a5db34eb1116277da92d7c46f904f0b52d3288 \ - # via pytest -multidict==4.7.4 \ - --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ - --hash=sha256:26502cefa86d79b86752e96639352c7247846515c864d7c2eb85d036752b643c \ - --hash=sha256:4fba5204d32d5c52439f88437d33ad14b5f228e25072a192453f658bddfe45a7 \ - --hash=sha256:527124ef435f39a37b279653ad0238ff606b58328ca7989a6df372fd75d7fe26 \ - --hash=sha256:5414f388ffd78c57e77bd253cf829373721f450613de53dc85a08e34d806e8eb \ - --hash=sha256:5eee66f882ab35674944dfa0d28b57fa51e160b4dce0ce19e47f495fdae70703 \ - --hash=sha256:63810343ea07f5cd86ba66ab66706243a6f5af075eea50c01e39b4ad6bc3c57a \ - --hash=sha256:6bd10adf9f0d6a98ccc792ab6f83d18674775986ba9bacd376b643fe35633357 \ - --hash=sha256:83c6ddf0add57c6b8a7de0bc7e2d656be3eefeff7c922af9a9aae7e49f225625 \ - --hash=sha256:93166e0f5379cf6cd29746989f8a594fa7204dcae2e9335ddba39c870a287e1c \ - --hash=sha256:9a7b115ee0b9b92d10ebc246811d8f55d0c57e82dbb6a26b23c9a9a6ad40ce0c \ - --hash=sha256:a38baa3046cce174a07a59952c9f876ae8875ef3559709639c17fdf21f7b30dd \ - --hash=sha256:a6d219f49821f4b2c85c6d426346a5d84dab6daa6f85ca3da6c00ed05b54022d \ - --hash=sha256:a8ed33e8f9b67e3b592c56567135bb42e7e0e97417a4b6a771e60898dfd5182b \ - --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ - --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ - --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 -mypy-extensions==0.4.3 \ - --hash=sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d \ - --hash=sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8 \ - # via mypy -mypy==0.761 \ - --hash=sha256:0a9a45157e532da06fe56adcfef8a74629566b607fa2c1ac0122d1ff995c748a \ - --hash=sha256:2c35cae79ceb20d47facfad51f952df16c2ae9f45db6cb38405a3da1cf8fc0a7 \ - --hash=sha256:4b9365ade157794cef9685791032521233729cb00ce76b0ddc78749abea463d2 \ - --hash=sha256:53ea810ae3f83f9c9b452582261ea859828a9ed666f2e1ca840300b69322c474 \ - --hash=sha256:634aef60b4ff0f650d3e59d4374626ca6153fcaff96ec075b215b568e6ee3cb0 \ - --hash=sha256:7e396ce53cacd5596ff6d191b47ab0ea18f8e0ec04e15d69728d530e86d4c217 \ - --hash=sha256:7eadc91af8270455e0d73565b8964da1642fe226665dd5c9560067cd64d56749 \ - --hash=sha256:7f672d02fffcbace4db2b05369142e0506cdcde20cea0e07c7c2171c4fd11dd6 \ - --hash=sha256:85baab8d74ec601e86134afe2bcccd87820f79d2f8d5798c889507d1088287bf \ - --hash=sha256:87c556fb85d709dacd4b4cb6167eecc5bbb4f0a9864b69136a0d4640fdc76a36 \ - --hash=sha256:a6bd44efee4dc8c3324c13785a9dc3519b3ee3a92cada42d2b57762b7053b49b \ - --hash=sha256:c6d27bd20c3ba60d5b02f20bd28e20091d6286a699174dfad515636cb09b5a72 \ - --hash=sha256:e2bb577d10d09a2d8822a042a23b8d62bc3b269667c9eb8e60a6edfa000211b1 \ - --hash=sha256:f97a605d7c8bc2c6d1172c2f0d5a65b24142e11a58de689046e62c2d632ca8c1 -packaging==20.1 \ - --hash=sha256:170748228214b70b672c581a3dd610ee51f733018650740e98c7df862a583f73 \ - --hash=sha256:e665345f9eef0c621aa0bf2f8d78cf6d21904eef16a93f020240b704a57f1334 \ - # via pytest -pathspec==0.7.0 \ - --hash=sha256:163b0632d4e31cef212976cf57b43d9fd6b0bac6e67c26015d611a647d5e7424 \ - --hash=sha256:562aa70af2e0d434367d9790ad37aed893de47f1693e4201fd1d3dca15d19b96 \ - # via black -pip-tools==4.4.0 \ - --hash=sha256:636efb9e3d3be0275a9089b5796494ba6d5fe2be37e878d3516a0ac6e64a9179 \ - --hash=sha256:da39692c36c1e66bc5fec078500225586a465f90c07287e9e48eb44f11a978b2 -pluggy==0.13.1 \ - --hash=sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0 \ - --hash=sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d \ - # via pytest -py==1.8.1 \ - --hash=sha256:5e27081401262157467ad6e7f851b7aa402c5852dbcb3dae06768434de5752aa \ - --hash=sha256:c20fdd83a5dbc0af9efd622bee9a5564e278f6380fffcacc43ba6f43db2813b0 \ - # via pytest -pyparsing==2.4.6 \ - --hash=sha256:4c830582a84fb022400b85429791bc551f1f4871c33f23e44f353119e92f969f \ - --hash=sha256:c342dccb5250c08d45fd6f8b4a559613ca603b57498511740e65cd11a2e7dcec \ - # via packaging -pytest-asyncio==0.10.0 \ - --hash=sha256:9fac5100fd716cbecf6ef89233e8590a4ad61d729d1732e0a96b84182df1daaf \ - --hash=sha256:d734718e25cfc32d2bf78d346e99d33724deeba774cc4afdf491530c6184b63b -pytest-cov==2.8.1 \ - --hash=sha256:cc6742d8bac45070217169f5f72ceee1e0e55b0221f54bcf24845972d3a47f2b \ - --hash=sha256:cdbdef4f870408ebdbfeb44e63e07eb18bb4619fae852f6e760645fa36172626 -pytest==5.3.4 \ - --hash=sha256:1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600 \ - --hash=sha256:c13d1943c63e599b98cf118fcb9703e4d7bde7caa9a432567bcdcae4bf512d20 -regex==2020.1.8 \ - --hash=sha256:07b39bf943d3d2fe63d46281d8504f8df0ff3fe4c57e13d1656737950e53e525 \ - --hash=sha256:0932941cdfb3afcbc26cc3bcf7c3f3d73d5a9b9c56955d432dbf8bbc147d4c5b \ - --hash=sha256:0e182d2f097ea8549a249040922fa2b92ae28be4be4895933e369a525ba36576 \ - --hash=sha256:10671601ee06cf4dc1bc0b4805309040bb34c9af423c12c379c83d7895622bb5 \ - --hash=sha256:23e2c2c0ff50f44877f64780b815b8fd2e003cda9ce817a7fd00dea5600c84a0 \ - --hash=sha256:26ff99c980f53b3191d8931b199b29d6787c059f2e029b2b0c694343b1708c35 \ - --hash=sha256:27429b8d74ba683484a06b260b7bb00f312e7c757792628ea251afdbf1434003 \ - --hash=sha256:3e77409b678b21a056415da3a56abfd7c3ad03da71f3051bbcdb68cf44d3c34d \ - --hash=sha256:4e8f02d3d72ca94efc8396f8036c0d3bcc812aefc28ec70f35bb888c74a25161 \ - --hash=sha256:4eae742636aec40cf7ab98171ab9400393360b97e8f9da67b1867a9ee0889b26 \ - --hash=sha256:6a6ae17bf8f2d82d1e8858a47757ce389b880083c4ff2498dba17c56e6c103b9 \ - --hash=sha256:6a6ba91b94427cd49cd27764679024b14a96874e0dc638ae6bdd4b1a3ce97be1 \ - --hash=sha256:7bcd322935377abcc79bfe5b63c44abd0b29387f267791d566bbb566edfdd146 \ - --hash=sha256:98b8ed7bb2155e2cbb8b76f627b2fd12cf4b22ab6e14873e8641f266e0fb6d8f \ - --hash=sha256:bd25bb7980917e4e70ccccd7e3b5740614f1c408a642c245019cff9d7d1b6149 \ - --hash=sha256:d0f424328f9822b0323b3b6f2e4b9c90960b24743d220763c7f07071e0778351 \ - --hash=sha256:d58e4606da2a41659c84baeb3cfa2e4c87a74cec89a1e7c56bee4b956f9d7461 \ - --hash=sha256:e3cd21cc2840ca67de0bbe4071f79f031c81418deb544ceda93ad75ca1ee9f7b \ - --hash=sha256:e6c02171d62ed6972ca8631f6f34fa3281d51db8b326ee397b9c83093a6b7242 \ - --hash=sha256:e7c7661f7276507bce416eaae22040fd91ca471b5b33c13f8ff21137ed6f248c \ - --hash=sha256:ecc6de77df3ef68fee966bb8cb4e067e84d4d1f397d0ef6fce46913663540d77 \ - # via black -six==1.14.0 \ - --hash=sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a \ - --hash=sha256:8f3cd2e254d8f793e7f3d6d9df77b92252b52637291d0f0da013c76ea2724b6c \ - # via packaging, pip-tools -toml==0.10.0 \ - --hash=sha256:229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c \ - --hash=sha256:235682dd292d5899d361a811df37e04a8828a5b1da3115886b73cf81ebc9100e \ - # via black -typed-ast==1.4.1 \ - --hash=sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355 \ - --hash=sha256:0c2c07682d61a629b68433afb159376e24e5b2fd4641d35424e462169c0a7919 \ - --hash=sha256:249862707802d40f7f29f6e1aad8d84b5aa9e44552d2cc17384b209f091276aa \ - --hash=sha256:24995c843eb0ad11a4527b026b4dde3da70e1f2d8806c99b7b4a7cf491612652 \ - --hash=sha256:269151951236b0f9a6f04015a9004084a5ab0d5f19b57de779f908621e7d8b75 \ - --hash=sha256:4083861b0aa07990b619bd7ddc365eb7fa4b817e99cf5f8d9cf21a42780f6e01 \ - --hash=sha256:498b0f36cc7054c1fead3d7fc59d2150f4d5c6c56ba7fb150c013fbc683a8d2d \ - --hash=sha256:4e3e5da80ccbebfff202a67bf900d081906c358ccc3d5e3c8aea42fdfdfd51c1 \ - --hash=sha256:6daac9731f172c2a22ade6ed0c00197ee7cc1221aa84cfdf9c31defeb059a907 \ - --hash=sha256:715ff2f2df46121071622063fc7543d9b1fd19ebfc4f5c8895af64a77a8c852c \ - --hash=sha256:73d785a950fc82dd2a25897d525d003f6378d1cb23ab305578394694202a58c3 \ - --hash=sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b \ - --hash=sha256:8ce678dbaf790dbdb3eba24056d5364fb45944f33553dd5869b7580cdbb83614 \ - --hash=sha256:aaee9905aee35ba5905cfb3c62f3e83b3bec7b39413f0a7f19be4e547ea01ebb \ - --hash=sha256:bcd3b13b56ea479b3650b82cabd6b5343a625b0ced5429e4ccad28a8973f301b \ - --hash=sha256:c9e348e02e4d2b4a8b2eedb48210430658df6951fa484e59de33ff773fbd4b41 \ - --hash=sha256:d205b1b46085271b4e15f670058ce182bd1199e56b317bf2ec004b6a44f911f6 \ - --hash=sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34 \ - --hash=sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe \ - --hash=sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4 \ - --hash=sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7 \ - # via black, mypy -typing-extensions==3.7.4.1 \ - --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ - --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ - --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 -uritemplate==3.0.1 \ - --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ - --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae -wcwidth==0.1.8 \ - --hash=sha256:8fd29383f539be45b20bd4df0dc29c20ba48654a41e661925e612311e9f3c603 \ - --hash=sha256:f28b3e8a6483e5d49e7f8949ac1a78314e740333ae305b4ba5defd3e74fb37a8 \ - # via pytest -yarl==1.4.2 \ - --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ - --hash=sha256:0ca2f395591bbd85ddd50a82eb1fde9c1066fafe888c5c7cc1d810cf03fd3cc6 \ - --hash=sha256:2098a4b4b9d75ee352807a95cdf5f10180db903bc5b7270715c6bbe2551f64ce \ - --hash=sha256:25e66e5e2007c7a39541ca13b559cd8ebc2ad8fe00ea94a2aad28a9b1e44e5ae \ - --hash=sha256:26d7c90cb04dee1665282a5d1a998defc1a9e012fdca0f33396f81508f49696d \ - --hash=sha256:308b98b0c8cd1dfef1a0311dc5e38ae8f9b58349226aa0533f15a16717ad702f \ - --hash=sha256:3ce3d4f7c6b69c4e4f0704b32eca8123b9c58ae91af740481aa57d7857b5e41b \ - --hash=sha256:58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b \ - --hash=sha256:5b10eb0e7f044cf0b035112446b26a3a2946bca9d7d7edb5e54a2ad2f6652abb \ - --hash=sha256:6faa19d3824c21bcbfdfce5171e193c8b4ddafdf0ac3f129ccf0cdfcb083e462 \ - --hash=sha256:944494be42fa630134bf907714d40207e646fd5a94423c90d5b514f7b0713fea \ - --hash=sha256:a161de7e50224e8e3de6e184707476b5a989037dcb24292b391a3d66ff158e70 \ - --hash=sha256:a4844ebb2be14768f7994f2017f70aca39d658a96c786211be5ddbe1c68794c1 \ - --hash=sha256:c2b509ac3d4b988ae8769901c66345425e361d518aecbe4acbfc2567e416626a \ - --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ - --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ - --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 -zipp==2.1.0 \ - --hash=sha256:ccc94ed0909b58ffe34430ea5451f07bc0c76467d7081619a454bf5c98b89e28 \ - --hash=sha256:feae2f18633c32fc71f2de629bfb3bd3c9325cd4419642b1f1da42ee488d9b98 \ - # via importlib-metadata diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index 765bcbb..0000000 --- a/mypy.ini +++ /dev/null @@ -1,7 +0,0 @@ -[mypy] -warn_return_any = True -warn_unused_configs = True -warn_unused_ignores = True - -[mypy-azure.*] -ignore_missing_imports = True From 83d572ea36031cc62960869021e38f37b3b9bbce Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 13 Jul 2024 03:25:41 +0300 Subject: [PATCH 28/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 57b022a17bc1b624030cc2aa89c4457841798379 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 14 Jul 2024 03:14:30 +0300 Subject: [PATCH 29/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 112e782a6c31a2b7723ae9443e7a19cf04bbd786 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 14 Jul 2024 16:38:30 +0300 Subject: [PATCH 30/67] squash! --- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 28 files changed, 5468 deletions(-) delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From ff2f3e3df555d9c73a44ed4a22b6d7175bdab1f7 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 22 Jul 2024 19:02:27 +0300 Subject: [PATCH 31/67] --- .github/dependabot.yml | 14 ++++++++ .github/workflows/Dependabot.yml | 45 +++++++++++++++++++++++++ .github/workflows/GitHub.yml | 58 ++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/Dependabot.yml create mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4b4fcd7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +enable-beta-ecosystems: true + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/__app__" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml new file mode 100644 index 0000000..387fece --- /dev/null +++ b/.github/workflows/Dependabot.yml @@ -0,0 +1,45 @@ +name: Dependabot + +concurrency: + group: Dependabot-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + security-events: write + contents: write + pull-requests: write + +on: + workflow_dispatch: + pull_request: + +jobs: + Approve: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + Merge: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml new file mode 100644 index 0000000..7b1e399 --- /dev/null +++ b/.github/workflows/GitHub.yml @@ -0,0 +1,58 @@ +name: GitHub + +concurrency: + group: GitHub-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + issues: write + pull-requests: write + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + Assign: + runs-on: ubuntu-latest + + env: + ADBLOCK: true + ASTRO_TELEMETRY_DISABLED: 1 + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 + AZURE_CORE_COLLECT_TELEMETRY: 0 + CHOOSENIM_NO_ANALYTICS: 1 + DIEZ_DO_NOT_TRACK: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 + DO_NOT_TRACK: 1 + ET_NO_TELEMETRY: 1 + GATSBY_TELEMETRY_DISABLED: 1 + GATSBY_TELEMETRY_OPTOUT: 1 + GATSBY_TELEMETRY_OPT_OUT: 1 + GRIT_TELEMETRY_DISABLED: 1 + HASURA_GRAPHQL_ENABLE_TELEMETRY: false + HINT_TELEMETRY: off + HOMEBREW_NO_ANALYTICS: 1 + INFLUXD_REPORTING_DISABLED: true + ITERATIVE_DO_NOT_TRACK: 1 + NEXT_TELEMETRY_DEBUG: 1 + NEXT_TELEMETRY_DISABLED: 1 + NG_CLI_ANALYTICS: false + NUXT_TELEMETRY_DISABLED: 1 + PIN_DO_NOT_TRACK: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + SAM_CLI_TELEMETRY: 0 + STNOUPGRADE: 1 + STRIPE_CLI_TELEMETRY_OPTOUT: 1 + TELEMETRY_DISABLED: 1 + TERRAFORM_TELEMETRY: 0 + + steps: + - uses: pozil/auto-assign-issue@v2.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: NikolaRHristov + numOfAssignee: 1 From d6ffa2f004ce174b80874f76699bd7466c15029d Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 23 Jul 2024 11:37:22 +0300 Subject: [PATCH 32/67] --- .github/dependabot.yml | 14 -------- .github/workflows/Dependabot.yml | 45 ------------------------- .github/workflows/GitHub.yml | 58 -------------------------------- 3 files changed, 117 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/Dependabot.yml delete mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4b4fcd7..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -enable-beta-ecosystems: true - -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "pip" - directory: "/__app__" - schedule: - interval: "daily" - versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml deleted file mode 100644 index 387fece..0000000 --- a/.github/workflows/Dependabot.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Dependabot - -concurrency: - group: Dependabot-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - security-events: write - contents: write - pull-requests: write - -on: - workflow_dispatch: - pull_request: - -jobs: - Approve: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - Merge: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml deleted file mode 100644 index 7b1e399..0000000 --- a/.github/workflows/GitHub.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: GitHub - -concurrency: - group: GitHub-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - issues: write - pull-requests: write - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - Assign: - runs-on: ubuntu-latest - - env: - ADBLOCK: true - ASTRO_TELEMETRY_DISABLED: 1 - AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 - AZURE_CORE_COLLECT_TELEMETRY: 0 - CHOOSENIM_NO_ANALYTICS: 1 - DIEZ_DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - DO_NOT_TRACK: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPTOUT: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GRIT_TELEMETRY_DISABLED: 1 - HASURA_GRAPHQL_ENABLE_TELEMETRY: false - HINT_TELEMETRY: off - HOMEBREW_NO_ANALYTICS: 1 - INFLUXD_REPORTING_DISABLED: true - ITERATIVE_DO_NOT_TRACK: 1 - NEXT_TELEMETRY_DEBUG: 1 - NEXT_TELEMETRY_DISABLED: 1 - NG_CLI_ANALYTICS: false - NUXT_TELEMETRY_DISABLED: 1 - PIN_DO_NOT_TRACK: 1 - POWERSHELL_TELEMETRY_OPTOUT: 1 - SAM_CLI_TELEMETRY: 0 - STNOUPGRADE: 1 - STRIPE_CLI_TELEMETRY_OPTOUT: 1 - TELEMETRY_DISABLED: 1 - TERRAFORM_TELEMETRY: 0 - - steps: - - uses: pozil/auto-assign-issue@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: NikolaRHristov - numOfAssignee: 1 From d5e30ae01e948cfada08b718f0120d999757b465 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 25 Jul 2024 14:07:10 +0300 Subject: [PATCH 33/67] --- .github/workflows/main.yml | 96 -------------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} From a6246022127f65103d1c9a49f6c4304315b7a9e8 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 28 Jul 2024 00:51:35 +0300 Subject: [PATCH 34/67] --- README.md | 66 ++++++++++++++++++++++++++++------------------- SECURITY.md | 54 ++++++++++++++++++++++++++------------ __app__/host.json | 10 +++---- 3 files changed, 82 insertions(+), 48 deletions(-) diff --git a/README.md b/README.md index 566153a..701a01d 100644 --- a/README.md +++ b/README.md @@ -3,21 +3,23 @@ # Purpose This bot exists to automate the development process/workflow for -https://github.com/microsoft/vscode-python. It also acts as a simple demo of -a GitHub bot running on Azure. +https://github.com/microsoft/vscode-python. It also acts as a simple demo of a +GitHub bot running on Azure. This bot is what is known as an OAuth app and is not a GitHub app. The [differences](https://developer.github.com/apps/differences-between-apps/) come -down to simplicity in authentication and how widely can the bot be deployed. Since -this bot is only deployed for a single repository and the original author was -intimately familiar with OAuth apps that was the route taken. +down to simplicity in authentication and how widely can the bot be deployed. +Since this bot is only deployed for a single repository and the original author +was intimately familiar with OAuth apps that was the route taken. This bot also predates [GitHub Actions](https://developer.github.com/actions/) -being released. As such some things this bot does may be easier to do as an action. +being released. As such some things this bot does may be easier to do as an +action. Currently the bot will do the following things for you: -1. Add/remove the `classify` label based on whether any other status label is set. +1. Add/remove the `classify` label based on whether any other status label is + set. 1. When an issue is closed, remove any status-related labels, e.g. `needs PR` (with the idea that if an issue is re-opened then it needs to be re-evaluated as to why the issue is still open). @@ -30,19 +32,24 @@ Currently the bot will do the following things for you: You must set two environment variables for the bot to function: -1. `GH_SECRET`: [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). -1. `GH_AUTH`: [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) for the bot to make changes in your repo. +1. `GH_SECRET`: + [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). +1. `GH_AUTH`: + [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) + for the bot to make changes in your repo. -The [shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) +The +[shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) between GitHub and your bot is used to verify that the webhook payload actually -originated from GitHub for your repository and isn't malicious. This is important -as a malicious user could send fake webhook payloads to your bot and cause it to -make changes on the malicious user's behalf. +originated from GitHub for your repository and isn't malicious. This is +important as a malicious user could send fake webhook payloads to your bot and +cause it to make changes on the malicious user's behalf. -The [personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) +The +[personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) is to empower your bot to make changes to your repo on your behalf. You can use -a token from your personal GitHub account or create a fake bot account. Make sure -the token has the following scopes/permissions: +a token from your personal GitHub account or create a fake bot account. Make +sure the token has the following scopes/permissions: 1.`repo:public_repo` (if your repo is public; adjust accordingly for your needs) @@ -62,14 +69,19 @@ running on Python 3.7. # Contributing -This project welcomes contributions and suggestions. Most contributions require you to agree to a -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us -the rights to use your contribution. For details, visit https://cla.microsoft.com. - -When you submit a pull request, a CLA-bot will automatically determine whether you need to provide -a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions -provided by the bot. You will only need to do this once across all repos using our CLA. - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. For +details, visit https://cla.microsoft.com. + +When you submit a pull request, a CLA-bot will automatically determine whether +you need to provide a CLA and decorate the PR appropriately (e.g., label, +comment). Simply follow the instructions provided by the bot. You will only need +to do this once across all repos using our CLA. + +This project has adopted the +[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information see the +[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or +contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any +additional questions or comments. diff --git a/SECURITY.md b/SECURITY.md index 8a5d128..4fe08fa 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,33 +2,54 @@ ## Security -Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). - -If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)) of a security vulnerability, please report it to us as described below. +Microsoft takes the security of our software products and services seriously, +which includes all source code repositories managed through our GitHub +organizations, which include [Microsoft](https://github.com/Microsoft), +[Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), +[AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and +[our GitHub organizations](https://opensource.microsoft.com/). + +If you believe you have found a security vulnerability in any Microsoft-owned +repository that meets Microsoft's +[Microsoft's definition of a security vulnerability]() +of a security vulnerability, please report it to us as described below. ## Reporting Security Issues **Please do not report security vulnerabilities through public GitHub issues.** -Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). +Instead, please report them to the Microsoft Security Response Center (MSRC) at +[https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). -If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). +If you prefer to submit without logging in, send email to +[secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your +message with our PGP key; please download it from the the +[Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). -You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). +You should receive a response within 24 hours. If for some reason you do not, +please follow up via email to ensure we received your original message. +Additional information can be found at +[microsoft.com/msrc](https://www.microsoft.com/msrc). -Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: +Please include the requested information listed below (as much as you can +provide) to help us better understand the nature and scope of the possible +issue: - * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) - * Full paths of source file(s) related to the manifestation of the issue - * The location of the affected source code (tag/branch/commit or direct URL) - * Any special configuration required to reproduce the issue - * Step-by-step instructions to reproduce the issue - * Proof-of-concept or exploit code (if possible) - * Impact of the issue, including how an attacker might exploit the issue +- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, + etc.) +- Full paths of source file(s) related to the manifestation of the issue +- The location of the affected source code (tag/branch/commit or direct URL) +- Any special configuration required to reproduce the issue +- Step-by-step instructions to reproduce the issue +- Proof-of-concept or exploit code (if possible) +- Impact of the issue, including how an attacker might exploit the issue This information will help us triage your report more quickly. -If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. +If you are reporting for a bug bounty, more complete reports can contribute to a +higher bounty award. Please visit our +[Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more +details about our active programs. ## Preferred Languages @@ -36,6 +57,7 @@ We prefer all communications to be in English. ## Policy -Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). +Microsoft follows the principle of +[Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). diff --git a/__app__/host.json b/__app__/host.json index f4458ea..f9ec075 100644 --- a/__app__/host.json +++ b/__app__/host.json @@ -1,7 +1,7 @@ { - "version": "2.0", - "extensionBundle": { - "id": "Microsoft.Azure.Functions.ExtensionBundle", - "version": "[1.*, 2.0.0)" - } + "version": "2.0", + "extensionBundle": { + "id": "Microsoft.Azure.Functions.ExtensionBundle", + "version": "[1.*, 2.0.0)" + } } From e73e6717b28bbc51086bcd6bd80d9100f940e42e Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 22 Aug 2024 03:02:14 +0300 Subject: [PATCH 35/67] --- .github/dependabot.yml | 14 ++++++++ .github/workflows/Dependabot.yml | 45 +++++++++++++++++++++++++ .github/workflows/GitHub.yml | 58 ++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/Dependabot.yml create mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4b4fcd7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +enable-beta-ecosystems: true + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/__app__" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml new file mode 100644 index 0000000..387fece --- /dev/null +++ b/.github/workflows/Dependabot.yml @@ -0,0 +1,45 @@ +name: Dependabot + +concurrency: + group: Dependabot-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + security-events: write + contents: write + pull-requests: write + +on: + workflow_dispatch: + pull_request: + +jobs: + Approve: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + Merge: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml new file mode 100644 index 0000000..7b1e399 --- /dev/null +++ b/.github/workflows/GitHub.yml @@ -0,0 +1,58 @@ +name: GitHub + +concurrency: + group: GitHub-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + issues: write + pull-requests: write + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + Assign: + runs-on: ubuntu-latest + + env: + ADBLOCK: true + ASTRO_TELEMETRY_DISABLED: 1 + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 + AZURE_CORE_COLLECT_TELEMETRY: 0 + CHOOSENIM_NO_ANALYTICS: 1 + DIEZ_DO_NOT_TRACK: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 + DO_NOT_TRACK: 1 + ET_NO_TELEMETRY: 1 + GATSBY_TELEMETRY_DISABLED: 1 + GATSBY_TELEMETRY_OPTOUT: 1 + GATSBY_TELEMETRY_OPT_OUT: 1 + GRIT_TELEMETRY_DISABLED: 1 + HASURA_GRAPHQL_ENABLE_TELEMETRY: false + HINT_TELEMETRY: off + HOMEBREW_NO_ANALYTICS: 1 + INFLUXD_REPORTING_DISABLED: true + ITERATIVE_DO_NOT_TRACK: 1 + NEXT_TELEMETRY_DEBUG: 1 + NEXT_TELEMETRY_DISABLED: 1 + NG_CLI_ANALYTICS: false + NUXT_TELEMETRY_DISABLED: 1 + PIN_DO_NOT_TRACK: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + SAM_CLI_TELEMETRY: 0 + STNOUPGRADE: 1 + STRIPE_CLI_TELEMETRY_OPTOUT: 1 + TELEMETRY_DISABLED: 1 + TERRAFORM_TELEMETRY: 0 + + steps: + - uses: pozil/auto-assign-issue@v2.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: NikolaRHristov + numOfAssignee: 1 From 7736d22bb9b3acfa0d078892e56df106ae136019 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 22 Aug 2024 06:11:09 +0300 Subject: [PATCH 36/67] --- __app__/github/function.json | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/__app__/github/function.json b/__app__/github/function.json index 9dc8d3f..d506eb3 100644 --- a/__app__/github/function.json +++ b/__app__/github/function.json @@ -1,19 +1,17 @@ { - "scriptFile": "__init__.py", - "bindings": [ - { - "authLevel": "function", - "type": "httpTrigger", - "direction": "in", - "name": "req", - "methods": [ - "post" - ] - }, - { - "type": "http", - "direction": "out", - "name": "$return" - } - ] + "scriptFile": "__init__.py", + "bindings": [ + { + "authLevel": "function", + "type": "httpTrigger", + "direction": "in", + "name": "req", + "methods": ["post"] + }, + { + "type": "http", + "direction": "out", + "name": "$return" + } + ] } From 6c64fa5b8c11f8779c2f1c3537d6ced9145aec88 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 24 Aug 2024 10:19:51 +0300 Subject: [PATCH 37/67] --- .github/dependabot.yml | 14 -------- .github/workflows/Dependabot.yml | 45 ------------------------- .github/workflows/GitHub.yml | 58 -------------------------------- 3 files changed, 117 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/Dependabot.yml delete mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4b4fcd7..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -enable-beta-ecosystems: true - -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "pip" - directory: "/__app__" - schedule: - interval: "daily" - versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml deleted file mode 100644 index 387fece..0000000 --- a/.github/workflows/Dependabot.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Dependabot - -concurrency: - group: Dependabot-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - security-events: write - contents: write - pull-requests: write - -on: - workflow_dispatch: - pull_request: - -jobs: - Approve: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - Merge: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml deleted file mode 100644 index 7b1e399..0000000 --- a/.github/workflows/GitHub.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: GitHub - -concurrency: - group: GitHub-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - issues: write - pull-requests: write - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - Assign: - runs-on: ubuntu-latest - - env: - ADBLOCK: true - ASTRO_TELEMETRY_DISABLED: 1 - AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 - AZURE_CORE_COLLECT_TELEMETRY: 0 - CHOOSENIM_NO_ANALYTICS: 1 - DIEZ_DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - DO_NOT_TRACK: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPTOUT: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GRIT_TELEMETRY_DISABLED: 1 - HASURA_GRAPHQL_ENABLE_TELEMETRY: false - HINT_TELEMETRY: off - HOMEBREW_NO_ANALYTICS: 1 - INFLUXD_REPORTING_DISABLED: true - ITERATIVE_DO_NOT_TRACK: 1 - NEXT_TELEMETRY_DEBUG: 1 - NEXT_TELEMETRY_DISABLED: 1 - NG_CLI_ANALYTICS: false - NUXT_TELEMETRY_DISABLED: 1 - PIN_DO_NOT_TRACK: 1 - POWERSHELL_TELEMETRY_OPTOUT: 1 - SAM_CLI_TELEMETRY: 0 - STNOUPGRADE: 1 - STRIPE_CLI_TELEMETRY_OPTOUT: 1 - TELEMETRY_DISABLED: 1 - TERRAFORM_TELEMETRY: 0 - - steps: - - uses: pozil/auto-assign-issue@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: NikolaRHristov - numOfAssignee: 1 From 021971c282f458a8c16e2e9db92390cad9a5d71b Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 27 Aug 2024 11:22:50 +0300 Subject: [PATCH 38/67] --- .github/dependabot.yml | 14 ++++++++ .github/workflows/Dependabot.yml | 45 +++++++++++++++++++++++++ .github/workflows/GitHub.yml | 58 ++++++++++++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/Dependabot.yml create mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4b4fcd7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +enable-beta-ecosystems: true + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/__app__" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml new file mode 100644 index 0000000..387fece --- /dev/null +++ b/.github/workflows/Dependabot.yml @@ -0,0 +1,45 @@ +name: Dependabot + +concurrency: + group: Dependabot-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + security-events: write + contents: write + pull-requests: write + +on: + workflow_dispatch: + pull_request: + +jobs: + Approve: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + Merge: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml new file mode 100644 index 0000000..7b1e399 --- /dev/null +++ b/.github/workflows/GitHub.yml @@ -0,0 +1,58 @@ +name: GitHub + +concurrency: + group: GitHub-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + issues: write + pull-requests: write + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + Assign: + runs-on: ubuntu-latest + + env: + ADBLOCK: true + ASTRO_TELEMETRY_DISABLED: 1 + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 + AZURE_CORE_COLLECT_TELEMETRY: 0 + CHOOSENIM_NO_ANALYTICS: 1 + DIEZ_DO_NOT_TRACK: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 + DO_NOT_TRACK: 1 + ET_NO_TELEMETRY: 1 + GATSBY_TELEMETRY_DISABLED: 1 + GATSBY_TELEMETRY_OPTOUT: 1 + GATSBY_TELEMETRY_OPT_OUT: 1 + GRIT_TELEMETRY_DISABLED: 1 + HASURA_GRAPHQL_ENABLE_TELEMETRY: false + HINT_TELEMETRY: off + HOMEBREW_NO_ANALYTICS: 1 + INFLUXD_REPORTING_DISABLED: true + ITERATIVE_DO_NOT_TRACK: 1 + NEXT_TELEMETRY_DEBUG: 1 + NEXT_TELEMETRY_DISABLED: 1 + NG_CLI_ANALYTICS: false + NUXT_TELEMETRY_DISABLED: 1 + PIN_DO_NOT_TRACK: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + SAM_CLI_TELEMETRY: 0 + STNOUPGRADE: 1 + STRIPE_CLI_TELEMETRY_OPTOUT: 1 + TELEMETRY_DISABLED: 1 + TERRAFORM_TELEMETRY: 0 + + steps: + - uses: pozil/auto-assign-issue@v2.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: NikolaRHristov + numOfAssignee: 1 From addb5f459fb6870cab2e0cdf72486c0145149b37 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 28 Aug 2024 20:30:51 +0300 Subject: [PATCH 39/67] --- .github/dependabot.yml | 14 -------- .github/workflows/Dependabot.yml | 45 ------------------------- .github/workflows/GitHub.yml | 58 -------------------------------- 3 files changed, 117 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/Dependabot.yml delete mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4b4fcd7..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -enable-beta-ecosystems: true - -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "pip" - directory: "/__app__" - schedule: - interval: "daily" - versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml deleted file mode 100644 index 387fece..0000000 --- a/.github/workflows/Dependabot.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Dependabot - -concurrency: - group: Dependabot-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - security-events: write - contents: write - pull-requests: write - -on: - workflow_dispatch: - pull_request: - -jobs: - Approve: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - Merge: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml deleted file mode 100644 index 7b1e399..0000000 --- a/.github/workflows/GitHub.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: GitHub - -concurrency: - group: GitHub-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - issues: write - pull-requests: write - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - Assign: - runs-on: ubuntu-latest - - env: - ADBLOCK: true - ASTRO_TELEMETRY_DISABLED: 1 - AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 - AZURE_CORE_COLLECT_TELEMETRY: 0 - CHOOSENIM_NO_ANALYTICS: 1 - DIEZ_DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - DO_NOT_TRACK: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPTOUT: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GRIT_TELEMETRY_DISABLED: 1 - HASURA_GRAPHQL_ENABLE_TELEMETRY: false - HINT_TELEMETRY: off - HOMEBREW_NO_ANALYTICS: 1 - INFLUXD_REPORTING_DISABLED: true - ITERATIVE_DO_NOT_TRACK: 1 - NEXT_TELEMETRY_DEBUG: 1 - NEXT_TELEMETRY_DISABLED: 1 - NG_CLI_ANALYTICS: false - NUXT_TELEMETRY_DISABLED: 1 - PIN_DO_NOT_TRACK: 1 - POWERSHELL_TELEMETRY_OPTOUT: 1 - SAM_CLI_TELEMETRY: 0 - STNOUPGRADE: 1 - STRIPE_CLI_TELEMETRY_OPTOUT: 1 - TELEMETRY_DISABLED: 1 - TERRAFORM_TELEMETRY: 0 - - steps: - - uses: pozil/auto-assign-issue@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: NikolaRHristov - numOfAssignee: 1 From 4296f88aaf0a779e7ab83c13cf503f1487dc191c Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 30 Aug 2024 09:53:45 +0300 Subject: [PATCH 40/67] --- .coveragerc | 7 - .gitignore | 107 -------------- LICENSE | 21 --- README.md | 87 ------------ SECURITY.md | 63 --------- __app__/.funcignore | 1 - __app__/.gitignore | 43 ------ __app__/__init__.py | 1 - __app__/ghutils/__init__.py | 0 __app__/ghutils/ping.py | 14 -- __app__/ghutils/server.py | 21 --- __app__/github/__init__.py | 36 ----- __app__/github/classify.py | 80 ----------- __app__/github/closed.py | 22 --- __app__/github/function.json | 17 --- __app__/github/labels.py | 41 ------ __app__/host.json | 7 - __app__/requirements.in | 2 - __app__/requirements.txt | 88 ------------ dev-requirements.in | 11 -- dev-requirements.txt | 261 ----------------------------------- mypy.ini | 7 - 22 files changed, 937 deletions(-) delete mode 100644 .coveragerc delete mode 100644 .gitignore delete mode 100644 LICENSE delete mode 100644 README.md delete mode 100644 SECURITY.md delete mode 100644 __app__/.funcignore delete mode 100644 __app__/.gitignore delete mode 100644 __app__/__init__.py delete mode 100644 __app__/ghutils/__init__.py delete mode 100644 __app__/ghutils/ping.py delete mode 100644 __app__/ghutils/server.py delete mode 100644 __app__/github/__init__.py delete mode 100644 __app__/github/classify.py delete mode 100644 __app__/github/closed.py delete mode 100644 __app__/github/function.json delete mode 100644 __app__/github/labels.py delete mode 100644 __app__/host.json delete mode 100644 __app__/requirements.in delete mode 100644 __app__/requirements.txt delete mode 100644 dev-requirements.in delete mode 100644 dev-requirements.txt delete mode 100644 mypy.ini diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 8ba58c5..0000000 --- a/.coveragerc +++ /dev/null @@ -1,7 +0,0 @@ -[run] -branch = True -source = - __app__ - -[report] -fail_under = 100 diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 63b7463..0000000 --- a/.gitignore +++ /dev/null @@ -1,107 +0,0 @@ -# Functions -pvscbot*.zip - -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 2107107..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/README.md b/README.md deleted file mode 100644 index 701a01d..0000000 --- a/README.md +++ /dev/null @@ -1,87 +0,0 @@ -[![CI](https://github.com/microsoft/pvscbot/workflows/CI/badge.svg?branch=master&event=push "CI status badge")](https://github.com/microsoft/pvscbot/actions?query=branch%3Amaster+event%3Apush+workflow%3ACI) - -# Purpose - -This bot exists to automate the development process/workflow for -https://github.com/microsoft/vscode-python. It also acts as a simple demo of a -GitHub bot running on Azure. - -This bot is what is known as an OAuth app and is not a GitHub app. The -[differences](https://developer.github.com/apps/differences-between-apps/) come -down to simplicity in authentication and how widely can the bot be deployed. -Since this bot is only deployed for a single repository and the original author -was intimately familiar with OAuth apps that was the route taken. - -This bot also predates [GitHub Actions](https://developer.github.com/actions/) -being released. As such some things this bot does may be easier to do as an -action. - -Currently the bot will do the following things for you: - -1. Add/remove the `classify` label based on whether any other status label is - set. -1. When an issue is closed, remove any status-related labels, e.g. `needs PR` - (with the idea that if an issue is re-opened then it needs to be re-evaluated - as to why the issue is still open). - -# Deployment - -## Generically - -### On the deployment/hosting side - -You must set two environment variables for the bot to function: - -1. `GH_SECRET`: - [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). -1. `GH_AUTH`: - [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) - for the bot to make changes in your repo. - -The -[shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) -between GitHub and your bot is used to verify that the webhook payload actually -originated from GitHub for your repository and isn't malicious. This is -important as a malicious user could send fake webhook payloads to your bot and -cause it to make changes on the malicious user's behalf. - -The -[personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) -is to empower your bot to make changes to your repo on your behalf. You can use -a token from your personal GitHub account or create a fake bot account. Make -sure the token has the following scopes/permissions: - -1.`repo:public_repo` (if your repo is public; adjust accordingly for your needs) - -### On the GitHub side - -When [creating the webhook](https://developer.github.com/webhooks/creating/) you -need to specify what events to send to your endpoint. This bot supports the -following events: - -1. `Issues` - -## Azure - -The bot is currently written to support -[Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/) -running on Python 3.7. - -# Contributing - -This project welcomes contributions and suggestions. Most contributions require -you to agree to a Contributor License Agreement (CLA) declaring that you have -the right to, and actually do, grant us the rights to use your contribution. For -details, visit https://cla.microsoft.com. - -When you submit a pull request, a CLA-bot will automatically determine whether -you need to provide a CLA and decorate the PR appropriately (e.g., label, -comment). Simply follow the instructions provided by the bot. You will only need -to do this once across all repos using our CLA. - -This project has adopted the -[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the -[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 4fe08fa..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,63 +0,0 @@ - - -## Security - -Microsoft takes the security of our software products and services seriously, -which includes all source code repositories managed through our GitHub -organizations, which include [Microsoft](https://github.com/Microsoft), -[Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), -[AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and -[our GitHub organizations](https://opensource.microsoft.com/). - -If you believe you have found a security vulnerability in any Microsoft-owned -repository that meets Microsoft's -[Microsoft's definition of a security vulnerability]() -of a security vulnerability, please report it to us as described below. - -## Reporting Security Issues - -**Please do not report security vulnerabilities through public GitHub issues.** - -Instead, please report them to the Microsoft Security Response Center (MSRC) at -[https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). - -If you prefer to submit without logging in, send email to -[secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your -message with our PGP key; please download it from the the -[Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). - -You should receive a response within 24 hours. If for some reason you do not, -please follow up via email to ensure we received your original message. -Additional information can be found at -[microsoft.com/msrc](https://www.microsoft.com/msrc). - -Please include the requested information listed below (as much as you can -provide) to help us better understand the nature and scope of the possible -issue: - -- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, - etc.) -- Full paths of source file(s) related to the manifestation of the issue -- The location of the affected source code (tag/branch/commit or direct URL) -- Any special configuration required to reproduce the issue -- Step-by-step instructions to reproduce the issue -- Proof-of-concept or exploit code (if possible) -- Impact of the issue, including how an attacker might exploit the issue - -This information will help us triage your report more quickly. - -If you are reporting for a bug bounty, more complete reports can contribute to a -higher bounty award. Please visit our -[Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more -details about our active programs. - -## Preferred Languages - -We prefer all communications to be in English. - -## Policy - -Microsoft follows the principle of -[Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). - - diff --git a/__app__/.funcignore b/__app__/.funcignore deleted file mode 100644 index 8b13789..0000000 --- a/__app__/.funcignore +++ /dev/null @@ -1 +0,0 @@ - diff --git a/__app__/.gitignore b/__app__/.gitignore deleted file mode 100644 index fbbe2ef..0000000 --- a/__app__/.gitignore +++ /dev/null @@ -1,43 +0,0 @@ -bin -obj -csx -.vs -edge -Publish - -*.user -*.suo -*.cscfg -*.Cache -project.lock.json - -/packages -/TestResults - -/tools/NuGet.exe -/App_Data -/secrets -/data -.secrets -appsettings.json -local.settings.json - -node_modules -dist - -# Local python packages -.python_packages/ - -# Python Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class \ No newline at end of file diff --git a/__app__/__init__.py b/__app__/__init__.py deleted file mode 100644 index 8b13789..0000000 --- a/__app__/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/__app__/ghutils/__init__.py b/__app__/ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/__app__/ghutils/ping.py b/__app__/ghutils/ping.py deleted file mode 100644 index a2927c4..0000000 --- a/__app__/ghutils/ping.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing - - -router = gidgethub.routing.Router() - - -@router.register("ping") -async def ping(*args, logger=None, **kwargs): - """Respond to the 'ping' event by doing nothing.""" - if logger: - logger.info("'ping' event received") diff --git a/__app__/ghutils/server.py b/__app__/ghutils/server.py deleted file mode 100644 index ffca514..0000000 --- a/__app__/ghutils/server.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import asyncio - -import gidgethub.sansio - - -async def serve(gh, router, headers, body, *, secret=None, logger=None, pause=1): - """Process the webhook event based on the raw HTTP request.""" - event = gidgethub.sansio.Event.from_http(headers, body, secret=secret) - if logger: - logger.info(f"GitHub delivery ID: {event.delivery_id}") - # Give GitHub some time to reach internal consistency. - await asyncio.sleep(pause) - await router.dispatch(event, gh, logger=logger) - if logger: - try: - logger.info(f"GitHub requests remaining: {gh.rate_limit.remaining}") - except AttributeError: - logger.info("No rate limit data provided") diff --git a/__app__/github/__init__.py b/__app__/github/__init__.py deleted file mode 100644 index d0ea620..0000000 --- a/__app__/github/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -import asyncio -import logging -import os - -import aiohttp -import azure.functions as func -from gidgethub import aiohttp as gh_aiohttp -from gidgethub import routing - -from ..ghutils import ping -from ..ghutils import server -from . import classify, closed - - -router = routing.Router(classify.router, closed.router, ping.router) - -CLIENT_SESSION = None - - -async def main(req: func.HttpRequest) -> func.HttpResponse: - global CLIENT_SESSION - - try: - if CLIENT_SESSION is None: - CLIENT_SESSION = aiohttp.ClientSession() - secret = os.environ.get("GH_SECRET") - oauth_token = os.environ.get("GH_AUTH") - body = req.get_body() - gh = gh_aiohttp.GitHubAPI( - CLIENT_SESSION, "Microsoft/pvscbot", oauth_token=oauth_token - ) - await server.serve(gh, router, req.headers, body, secret=secret, logger=logging) - return func.HttpResponse(status_code=200) - except Exception: - logging.exception("Unhandled exception") - return func.HttpResponse(status_code=500) diff --git a/__app__/github/classify.py b/__app__/github/classify.py deleted file mode 100644 index ad5d144..0000000 --- a/__app__/github/classify.py +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing - -from . import labels - -router = gidgethub.routing.Router() - - -def is_opened(event): - return event.data["issue"]["state"] == "open" - - -def has_classify(event): - return any( - label["name"] == labels.Status.classify.value - for label in event.data["issue"]["labels"] - ) - - -async def add_classify_label(gh, event): - await gh.post( - event.data["issue"]["labels_url"], - data={"labels": [labels.Status.classify.value]}, - ) - - -def classify_unneeded(labels_to_check): - """Determine if an existing label negates needing 'classify'.""" - status_labels = set(labels.STATUS_LABELS) | labels.CLASSIFICATION_LABELS - status_labels.add(labels.Team.data_science.value) - return any(label in status_labels for label in labels_to_check) - - -# Removing 'classify' from closed issues is taken care of in the 'closed' submodule. -@router.register("issues", action="opened") -@router.register("issues", action="reopened") -async def classify_new_issue(event, gh, *args, **kwargs): - """Add the 'classify' label.""" - issue = event.data["issue"] - existing_labels = {label["name"] for label in issue["labels"]} - if classify_unneeded(existing_labels): - # Teammate pre-classified the issue when creating it. - return - async for label in gh.getiter(issue["labels_url"]): - if classify_unneeded({label["name"]}): - # Issue already has a status label. - return - else: - await add_classify_label(gh, event) - - -@router.register("issues", action="labeled") -async def added_label(event, gh, *args, **kwargs): - """Remove 'classify' if it is no longer required.""" - added_label = event.data["label"]["name"] - if not is_opened(event): - return - elif added_label == labels.Status.classify.value: - return - elif has_classify(event): - if classify_unneeded({added_label}): - try: - await gh.delete( - event.data["issue"]["labels_url"], - {"name": labels.Status.classify.value}, - ) - except gidgethub.BadRequest as exc: - if not "Label does not exist" in str(exc): - raise - - -@router.register("issues", action="unlabeled") -async def removed_label(event, gh, *args, **kwargs): - remaining_labels = {label["name"] for label in event.data["issue"]["labels"]} - if not is_opened(event) or classify_unneeded(remaining_labels): - return - else: - await add_classify_label(gh, event) diff --git a/__app__/github/closed.py b/__app__/github/closed.py deleted file mode 100644 index fbf5da8..0000000 --- a/__app__/github/closed.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing - -from . import labels - - -router = gidgethub.routing.Router() - -ALL_STATUS_LABELS = {label.value for label in labels.Status} - - -@router.register("issues", action="closed") -async def remove_status_labels(event, gh, *args, **kwargs): - """Remove all status-related labels.""" - labels = event.data["issue"]["labels"] - labels_url = event.data["issue"]["labels_url"] - for label in labels: - label_name = label["name"] - if label_name in ALL_STATUS_LABELS: - await gh.delete(labels_url, {"name": label_name}) diff --git a/__app__/github/function.json b/__app__/github/function.json deleted file mode 100644 index d506eb3..0000000 --- a/__app__/github/function.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "scriptFile": "__init__.py", - "bindings": [ - { - "authLevel": "function", - "type": "httpTrigger", - "direction": "in", - "name": "req", - "methods": ["post"] - }, - { - "type": "http", - "direction": "out", - "name": "$return" - } - ] -} diff --git a/__app__/github/labels.py b/__app__/github/labels.py deleted file mode 100644 index e998855..0000000 --- a/__app__/github/labels.py +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import enum - - -@enum.unique -class Status(enum.Enum): - classify = "classify" - triage = "triage" - investigating = "investigating" - needs_upstream_fix = "needs upstream fix" - needs_decision = "needs decision" - needs_spike = "needs spike" - needs_spec = "needs spec" - needs_PR = "needs PR" - experimenting = "experimenting" - - -STATUS_LABELS = frozenset(e.value for e in Status.__members__.values()) - - -@enum.unique -class Classification(enum.Enum): - epic = "Epic" - meta = "meta" - release_plan = "release plan" - - -CLASSIFICATION_LABELS = frozenset(e.value for e in Classification.__members__.values()) - - -@enum.unique -class Skip(enum.Enum): - news = "skip news" - - -@enum.unique -class Team(enum.Enum): - data_science = "data science" - xteam = "xteam" diff --git a/__app__/host.json b/__app__/host.json deleted file mode 100644 index f9ec075..0000000 --- a/__app__/host.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": "2.0", - "extensionBundle": { - "id": "Microsoft.Azure.Functions.ExtensionBundle", - "version": "[1.*, 2.0.0)" - } -} diff --git a/__app__/requirements.in b/__app__/requirements.in deleted file mode 100644 index 77fcca9..0000000 --- a/__app__/requirements.in +++ /dev/null @@ -1,2 +0,0 @@ -gidgethub -aiohttp diff --git a/__app__/requirements.txt b/__app__/requirements.txt deleted file mode 100644 index 75b05ae..0000000 --- a/__app__/requirements.txt +++ /dev/null @@ -1,88 +0,0 @@ -# -# This file is autogenerated by pip-compile -# To update, run: -# -# pip-compile --generate-hashes -# -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 \ - # via aiohttp -attrs==19.3.0 \ - --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ - --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 \ - # via aiohttp -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 \ - # via aiohttp -gidgethub==3.3.0 \ - --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ - --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c \ - # via aiohttp -idna==2.8 \ - --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ - --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c \ - # via idna-ssl, yarl -multidict==4.7.4 \ - --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ - --hash=sha256:26502cefa86d79b86752e96639352c7247846515c864d7c2eb85d036752b643c \ - --hash=sha256:4fba5204d32d5c52439f88437d33ad14b5f228e25072a192453f658bddfe45a7 \ - --hash=sha256:527124ef435f39a37b279653ad0238ff606b58328ca7989a6df372fd75d7fe26 \ - --hash=sha256:5414f388ffd78c57e77bd253cf829373721f450613de53dc85a08e34d806e8eb \ - --hash=sha256:5eee66f882ab35674944dfa0d28b57fa51e160b4dce0ce19e47f495fdae70703 \ - --hash=sha256:63810343ea07f5cd86ba66ab66706243a6f5af075eea50c01e39b4ad6bc3c57a \ - --hash=sha256:6bd10adf9f0d6a98ccc792ab6f83d18674775986ba9bacd376b643fe35633357 \ - --hash=sha256:83c6ddf0add57c6b8a7de0bc7e2d656be3eefeff7c922af9a9aae7e49f225625 \ - --hash=sha256:93166e0f5379cf6cd29746989f8a594fa7204dcae2e9335ddba39c870a287e1c \ - --hash=sha256:9a7b115ee0b9b92d10ebc246811d8f55d0c57e82dbb6a26b23c9a9a6ad40ce0c \ - --hash=sha256:a38baa3046cce174a07a59952c9f876ae8875ef3559709639c17fdf21f7b30dd \ - --hash=sha256:a6d219f49821f4b2c85c6d426346a5d84dab6daa6f85ca3da6c00ed05b54022d \ - --hash=sha256:a8ed33e8f9b67e3b592c56567135bb42e7e0e97417a4b6a771e60898dfd5182b \ - --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ - --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ - --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 \ - # via aiohttp, yarl -typing-extensions==3.7.4.1 \ - --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ - --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ - --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 \ - # via aiohttp -uritemplate==3.0.1 \ - --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ - --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae \ - # via gidgethub -yarl==1.4.2 \ - --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ - --hash=sha256:0ca2f395591bbd85ddd50a82eb1fde9c1066fafe888c5c7cc1d810cf03fd3cc6 \ - --hash=sha256:2098a4b4b9d75ee352807a95cdf5f10180db903bc5b7270715c6bbe2551f64ce \ - --hash=sha256:25e66e5e2007c7a39541ca13b559cd8ebc2ad8fe00ea94a2aad28a9b1e44e5ae \ - --hash=sha256:26d7c90cb04dee1665282a5d1a998defc1a9e012fdca0f33396f81508f49696d \ - --hash=sha256:308b98b0c8cd1dfef1a0311dc5e38ae8f9b58349226aa0533f15a16717ad702f \ - --hash=sha256:3ce3d4f7c6b69c4e4f0704b32eca8123b9c58ae91af740481aa57d7857b5e41b \ - --hash=sha256:58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b \ - --hash=sha256:5b10eb0e7f044cf0b035112446b26a3a2946bca9d7d7edb5e54a2ad2f6652abb \ - --hash=sha256:6faa19d3824c21bcbfdfce5171e193c8b4ddafdf0ac3f129ccf0cdfcb083e462 \ - --hash=sha256:944494be42fa630134bf907714d40207e646fd5a94423c90d5b514f7b0713fea \ - --hash=sha256:a161de7e50224e8e3de6e184707476b5a989037dcb24292b391a3d66ff158e70 \ - --hash=sha256:a4844ebb2be14768f7994f2017f70aca39d658a96c786211be5ddbe1c68794c1 \ - --hash=sha256:c2b509ac3d4b988ae8769901c66345425e361d518aecbe4acbfc2567e416626a \ - --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ - --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ - --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 \ - # via aiohttp diff --git a/dev-requirements.in b/dev-requirements.in deleted file mode 100644 index ade9802..0000000 --- a/dev-requirements.in +++ /dev/null @@ -1,11 +0,0 @@ --r __app__/requirements.txt -azure-functions -# Development -asynctest -black -importlib_resources -mypy -pip-tools -pytest -pytest-cov -pytest-asyncio diff --git a/dev-requirements.txt b/dev-requirements.txt deleted file mode 100644 index 232ea46..0000000 --- a/dev-requirements.txt +++ /dev/null @@ -1,261 +0,0 @@ -# -# This file is autogenerated by pip-compile -# To update, run: -# -# pip-compile --generate-hashes '.\dev-requirements.in' -# -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 -appdirs==1.4.3 \ - --hash=sha256:9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92 \ - --hash=sha256:d8b24664561d0d34ddfaec54636d502d7cea6e29c3eaf68f3df6180863e2166e \ - # via black -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 -asynctest==0.13.0 \ - --hash=sha256:5da6118a7e6d6b54d83a8f7197769d046922a44d2a99c21382f0a6e4fadae676 \ - --hash=sha256:c27862842d15d83e6a34eb0b2866c323880eb3a75e4485b079ea11748fd77fac -atomicwrites==1.3.0 \ - --hash=sha256:03472c30eb2c5d1ba9227e4c2ca66ab8287fbfbbda3888aa93dc2e28fc6811b4 \ - --hash=sha256:75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6 \ - # via pytest -attrs==19.3.0 \ - --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ - --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 -azure-functions==1.0.7 \ - --hash=sha256:88997fbb7e8ff5b36a71cbadee6c8abbce6c4525942a6f997e24d6cf23fac23b \ - --hash=sha256:b65cd543736640d26ff95bfc86438e9c6afade431fa50190334fca757cebf565 -black==19.10b0 \ - --hash=sha256:1b30e59be925fafc1ee4565e5e08abef6b03fe455102883820fe5ee2e4734e0b \ - --hash=sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539 -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 -click==7.0 \ - --hash=sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13 \ - --hash=sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7 \ - # via black, pip-tools -colorama==0.4.3 \ - --hash=sha256:7d73d2a99753107a36ac6b455ee49046802e59d9d076ef8e47b61499fa29afff \ - --hash=sha256:e96da0d330793e2cb9485e9ddfd918d456036c7149416295932478192f4436a1 \ - # via pytest -coverage==5.0.3 \ - --hash=sha256:15cf13a6896048d6d947bf7d222f36e4809ab926894beb748fc9caa14605d9c3 \ - --hash=sha256:1daa3eceed220f9fdb80d5ff950dd95112cd27f70d004c7918ca6dfc6c47054c \ - --hash=sha256:1e44a022500d944d42f94df76727ba3fc0a5c0b672c358b61067abb88caee7a0 \ - --hash=sha256:25dbf1110d70bab68a74b4b9d74f30e99b177cde3388e07cc7272f2168bd1477 \ - --hash=sha256:3230d1003eec018ad4a472d254991e34241e0bbd513e97a29727c7c2f637bd2a \ - --hash=sha256:3dbb72eaeea5763676a1a1efd9b427a048c97c39ed92e13336e726117d0b72bf \ - --hash=sha256:5012d3b8d5a500834783689a5d2292fe06ec75dc86ee1ccdad04b6f5bf231691 \ - --hash=sha256:51bc7710b13a2ae0c726f69756cf7ffd4362f4ac36546e243136187cfcc8aa73 \ - --hash=sha256:527b4f316e6bf7755082a783726da20671a0cc388b786a64417780b90565b987 \ - --hash=sha256:722e4557c8039aad9592c6a4213db75da08c2cd9945320220634f637251c3894 \ - --hash=sha256:76e2057e8ffba5472fd28a3a010431fd9e928885ff480cb278877c6e9943cc2e \ - --hash=sha256:77afca04240c40450c331fa796b3eab6f1e15c5ecf8bf2b8bee9706cd5452fef \ - --hash=sha256:7afad9835e7a651d3551eab18cbc0fdb888f0a6136169fbef0662d9cdc9987cf \ - --hash=sha256:9bea19ac2f08672636350f203db89382121c9c2ade85d945953ef3c8cf9d2a68 \ - --hash=sha256:a8b8ac7876bc3598e43e2603f772d2353d9931709345ad6c1149009fd1bc81b8 \ - --hash=sha256:b0840b45187699affd4c6588286d429cd79a99d509fe3de0f209594669bb0954 \ - --hash=sha256:b26aaf69713e5674efbde4d728fb7124e429c9466aeaf5f4a7e9e699b12c9fe2 \ - --hash=sha256:b63dd43f455ba878e5e9f80ba4f748c0a2156dde6e0e6e690310e24d6e8caf40 \ - --hash=sha256:be18f4ae5a9e46edae3f329de2191747966a34a3d93046dbdf897319923923bc \ - --hash=sha256:c312e57847db2526bc92b9bfa78266bfbaabac3fdcd751df4d062cd4c23e46dc \ - --hash=sha256:c60097190fe9dc2b329a0eb03393e2e0829156a589bd732e70794c0dd804258e \ - --hash=sha256:c62a2143e1313944bf4a5ab34fd3b4be15367a02e9478b0ce800cb510e3bbb9d \ - --hash=sha256:cc1109f54a14d940b8512ee9f1c3975c181bbb200306c6d8b87d93376538782f \ - --hash=sha256:cd60f507c125ac0ad83f05803063bed27e50fa903b9c2cfee3f8a6867ca600fc \ - --hash=sha256:d513cc3db248e566e07a0da99c230aca3556d9b09ed02f420664e2da97eac301 \ - --hash=sha256:d649dc0bcace6fcdb446ae02b98798a856593b19b637c1b9af8edadf2b150bea \ - --hash=sha256:d7008a6796095a79544f4da1ee49418901961c97ca9e9d44904205ff7d6aa8cb \ - --hash=sha256:da93027835164b8223e8e5af2cf902a4c80ed93cb0909417234f4a9df3bcd9af \ - --hash=sha256:e69215621707119c6baf99bda014a45b999d37602cb7043d943c76a59b05bf52 \ - --hash=sha256:ea9525e0fef2de9208250d6c5aeeee0138921057cd67fcef90fbed49c4d62d37 \ - --hash=sha256:fca1669d464f0c9831fd10be2eef6b86f5ebd76c724d1e0706ebdff86bb4adf0 \ - # via pytest-cov -gidgethub==3.3.0 \ - --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ - --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c -idna==2.8 \ - --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ - --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c -importlib-metadata==1.4.0 \ - --hash=sha256:bdd9b7c397c273bcc9a11d6629a38487cd07154fa255a467bf704cd2c258e359 \ - --hash=sha256:f17c015735e1a88296994c0697ecea7e11db24290941983b08c9feb30921e6d8 \ - # via pluggy, pytest -importlib-resources==1.0.2 \ - --hash=sha256:6e2783b2538bd5a14678284a3962b0660c715e5a0f10243fd5e00a4b5974f50b \ - --hash=sha256:d3279fd0f6f847cced9f7acc19bd3e5df54d34f93a2e7bb5f238f81545787078 -more-itertools==8.1.0 \ - --hash=sha256:1a2a32c72400d365000412fe08eb4a24ebee89997c18d3d147544f70f5403b39 \ - --hash=sha256:c468adec578380b6281a114cb8a5db34eb1116277da92d7c46f904f0b52d3288 \ - # via pytest -multidict==4.7.4 \ - --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ - --hash=sha256:26502cefa86d79b86752e96639352c7247846515c864d7c2eb85d036752b643c \ - --hash=sha256:4fba5204d32d5c52439f88437d33ad14b5f228e25072a192453f658bddfe45a7 \ - --hash=sha256:527124ef435f39a37b279653ad0238ff606b58328ca7989a6df372fd75d7fe26 \ - --hash=sha256:5414f388ffd78c57e77bd253cf829373721f450613de53dc85a08e34d806e8eb \ - --hash=sha256:5eee66f882ab35674944dfa0d28b57fa51e160b4dce0ce19e47f495fdae70703 \ - --hash=sha256:63810343ea07f5cd86ba66ab66706243a6f5af075eea50c01e39b4ad6bc3c57a \ - --hash=sha256:6bd10adf9f0d6a98ccc792ab6f83d18674775986ba9bacd376b643fe35633357 \ - --hash=sha256:83c6ddf0add57c6b8a7de0bc7e2d656be3eefeff7c922af9a9aae7e49f225625 \ - --hash=sha256:93166e0f5379cf6cd29746989f8a594fa7204dcae2e9335ddba39c870a287e1c \ - --hash=sha256:9a7b115ee0b9b92d10ebc246811d8f55d0c57e82dbb6a26b23c9a9a6ad40ce0c \ - --hash=sha256:a38baa3046cce174a07a59952c9f876ae8875ef3559709639c17fdf21f7b30dd \ - --hash=sha256:a6d219f49821f4b2c85c6d426346a5d84dab6daa6f85ca3da6c00ed05b54022d \ - --hash=sha256:a8ed33e8f9b67e3b592c56567135bb42e7e0e97417a4b6a771e60898dfd5182b \ - --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ - --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ - --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 -mypy-extensions==0.4.3 \ - --hash=sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d \ - --hash=sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8 \ - # via mypy -mypy==0.761 \ - --hash=sha256:0a9a45157e532da06fe56adcfef8a74629566b607fa2c1ac0122d1ff995c748a \ - --hash=sha256:2c35cae79ceb20d47facfad51f952df16c2ae9f45db6cb38405a3da1cf8fc0a7 \ - --hash=sha256:4b9365ade157794cef9685791032521233729cb00ce76b0ddc78749abea463d2 \ - --hash=sha256:53ea810ae3f83f9c9b452582261ea859828a9ed666f2e1ca840300b69322c474 \ - --hash=sha256:634aef60b4ff0f650d3e59d4374626ca6153fcaff96ec075b215b568e6ee3cb0 \ - --hash=sha256:7e396ce53cacd5596ff6d191b47ab0ea18f8e0ec04e15d69728d530e86d4c217 \ - --hash=sha256:7eadc91af8270455e0d73565b8964da1642fe226665dd5c9560067cd64d56749 \ - --hash=sha256:7f672d02fffcbace4db2b05369142e0506cdcde20cea0e07c7c2171c4fd11dd6 \ - --hash=sha256:85baab8d74ec601e86134afe2bcccd87820f79d2f8d5798c889507d1088287bf \ - --hash=sha256:87c556fb85d709dacd4b4cb6167eecc5bbb4f0a9864b69136a0d4640fdc76a36 \ - --hash=sha256:a6bd44efee4dc8c3324c13785a9dc3519b3ee3a92cada42d2b57762b7053b49b \ - --hash=sha256:c6d27bd20c3ba60d5b02f20bd28e20091d6286a699174dfad515636cb09b5a72 \ - --hash=sha256:e2bb577d10d09a2d8822a042a23b8d62bc3b269667c9eb8e60a6edfa000211b1 \ - --hash=sha256:f97a605d7c8bc2c6d1172c2f0d5a65b24142e11a58de689046e62c2d632ca8c1 -packaging==20.1 \ - --hash=sha256:170748228214b70b672c581a3dd610ee51f733018650740e98c7df862a583f73 \ - --hash=sha256:e665345f9eef0c621aa0bf2f8d78cf6d21904eef16a93f020240b704a57f1334 \ - # via pytest -pathspec==0.7.0 \ - --hash=sha256:163b0632d4e31cef212976cf57b43d9fd6b0bac6e67c26015d611a647d5e7424 \ - --hash=sha256:562aa70af2e0d434367d9790ad37aed893de47f1693e4201fd1d3dca15d19b96 \ - # via black -pip-tools==4.4.0 \ - --hash=sha256:636efb9e3d3be0275a9089b5796494ba6d5fe2be37e878d3516a0ac6e64a9179 \ - --hash=sha256:da39692c36c1e66bc5fec078500225586a465f90c07287e9e48eb44f11a978b2 -pluggy==0.13.1 \ - --hash=sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0 \ - --hash=sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d \ - # via pytest -py==1.8.1 \ - --hash=sha256:5e27081401262157467ad6e7f851b7aa402c5852dbcb3dae06768434de5752aa \ - --hash=sha256:c20fdd83a5dbc0af9efd622bee9a5564e278f6380fffcacc43ba6f43db2813b0 \ - # via pytest -pyparsing==2.4.6 \ - --hash=sha256:4c830582a84fb022400b85429791bc551f1f4871c33f23e44f353119e92f969f \ - --hash=sha256:c342dccb5250c08d45fd6f8b4a559613ca603b57498511740e65cd11a2e7dcec \ - # via packaging -pytest-asyncio==0.10.0 \ - --hash=sha256:9fac5100fd716cbecf6ef89233e8590a4ad61d729d1732e0a96b84182df1daaf \ - --hash=sha256:d734718e25cfc32d2bf78d346e99d33724deeba774cc4afdf491530c6184b63b -pytest-cov==2.8.1 \ - --hash=sha256:cc6742d8bac45070217169f5f72ceee1e0e55b0221f54bcf24845972d3a47f2b \ - --hash=sha256:cdbdef4f870408ebdbfeb44e63e07eb18bb4619fae852f6e760645fa36172626 -pytest==5.3.4 \ - --hash=sha256:1d122e8be54d1a709e56f82e2d85dcba3018313d64647f38a91aec88c239b600 \ - --hash=sha256:c13d1943c63e599b98cf118fcb9703e4d7bde7caa9a432567bcdcae4bf512d20 -regex==2020.1.8 \ - --hash=sha256:07b39bf943d3d2fe63d46281d8504f8df0ff3fe4c57e13d1656737950e53e525 \ - --hash=sha256:0932941cdfb3afcbc26cc3bcf7c3f3d73d5a9b9c56955d432dbf8bbc147d4c5b \ - --hash=sha256:0e182d2f097ea8549a249040922fa2b92ae28be4be4895933e369a525ba36576 \ - --hash=sha256:10671601ee06cf4dc1bc0b4805309040bb34c9af423c12c379c83d7895622bb5 \ - --hash=sha256:23e2c2c0ff50f44877f64780b815b8fd2e003cda9ce817a7fd00dea5600c84a0 \ - --hash=sha256:26ff99c980f53b3191d8931b199b29d6787c059f2e029b2b0c694343b1708c35 \ - --hash=sha256:27429b8d74ba683484a06b260b7bb00f312e7c757792628ea251afdbf1434003 \ - --hash=sha256:3e77409b678b21a056415da3a56abfd7c3ad03da71f3051bbcdb68cf44d3c34d \ - --hash=sha256:4e8f02d3d72ca94efc8396f8036c0d3bcc812aefc28ec70f35bb888c74a25161 \ - --hash=sha256:4eae742636aec40cf7ab98171ab9400393360b97e8f9da67b1867a9ee0889b26 \ - --hash=sha256:6a6ae17bf8f2d82d1e8858a47757ce389b880083c4ff2498dba17c56e6c103b9 \ - --hash=sha256:6a6ba91b94427cd49cd27764679024b14a96874e0dc638ae6bdd4b1a3ce97be1 \ - --hash=sha256:7bcd322935377abcc79bfe5b63c44abd0b29387f267791d566bbb566edfdd146 \ - --hash=sha256:98b8ed7bb2155e2cbb8b76f627b2fd12cf4b22ab6e14873e8641f266e0fb6d8f \ - --hash=sha256:bd25bb7980917e4e70ccccd7e3b5740614f1c408a642c245019cff9d7d1b6149 \ - --hash=sha256:d0f424328f9822b0323b3b6f2e4b9c90960b24743d220763c7f07071e0778351 \ - --hash=sha256:d58e4606da2a41659c84baeb3cfa2e4c87a74cec89a1e7c56bee4b956f9d7461 \ - --hash=sha256:e3cd21cc2840ca67de0bbe4071f79f031c81418deb544ceda93ad75ca1ee9f7b \ - --hash=sha256:e6c02171d62ed6972ca8631f6f34fa3281d51db8b326ee397b9c83093a6b7242 \ - --hash=sha256:e7c7661f7276507bce416eaae22040fd91ca471b5b33c13f8ff21137ed6f248c \ - --hash=sha256:ecc6de77df3ef68fee966bb8cb4e067e84d4d1f397d0ef6fce46913663540d77 \ - # via black -six==1.14.0 \ - --hash=sha256:236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a \ - --hash=sha256:8f3cd2e254d8f793e7f3d6d9df77b92252b52637291d0f0da013c76ea2724b6c \ - # via packaging, pip-tools -toml==0.10.0 \ - --hash=sha256:229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c \ - --hash=sha256:235682dd292d5899d361a811df37e04a8828a5b1da3115886b73cf81ebc9100e \ - # via black -typed-ast==1.4.1 \ - --hash=sha256:0666aa36131496aed8f7be0410ff974562ab7eeac11ef351def9ea6fa28f6355 \ - --hash=sha256:0c2c07682d61a629b68433afb159376e24e5b2fd4641d35424e462169c0a7919 \ - --hash=sha256:249862707802d40f7f29f6e1aad8d84b5aa9e44552d2cc17384b209f091276aa \ - --hash=sha256:24995c843eb0ad11a4527b026b4dde3da70e1f2d8806c99b7b4a7cf491612652 \ - --hash=sha256:269151951236b0f9a6f04015a9004084a5ab0d5f19b57de779f908621e7d8b75 \ - --hash=sha256:4083861b0aa07990b619bd7ddc365eb7fa4b817e99cf5f8d9cf21a42780f6e01 \ - --hash=sha256:498b0f36cc7054c1fead3d7fc59d2150f4d5c6c56ba7fb150c013fbc683a8d2d \ - --hash=sha256:4e3e5da80ccbebfff202a67bf900d081906c358ccc3d5e3c8aea42fdfdfd51c1 \ - --hash=sha256:6daac9731f172c2a22ade6ed0c00197ee7cc1221aa84cfdf9c31defeb059a907 \ - --hash=sha256:715ff2f2df46121071622063fc7543d9b1fd19ebfc4f5c8895af64a77a8c852c \ - --hash=sha256:73d785a950fc82dd2a25897d525d003f6378d1cb23ab305578394694202a58c3 \ - --hash=sha256:8c8aaad94455178e3187ab22c8b01a3837f8ee50e09cf31f1ba129eb293ec30b \ - --hash=sha256:8ce678dbaf790dbdb3eba24056d5364fb45944f33553dd5869b7580cdbb83614 \ - --hash=sha256:aaee9905aee35ba5905cfb3c62f3e83b3bec7b39413f0a7f19be4e547ea01ebb \ - --hash=sha256:bcd3b13b56ea479b3650b82cabd6b5343a625b0ced5429e4ccad28a8973f301b \ - --hash=sha256:c9e348e02e4d2b4a8b2eedb48210430658df6951fa484e59de33ff773fbd4b41 \ - --hash=sha256:d205b1b46085271b4e15f670058ce182bd1199e56b317bf2ec004b6a44f911f6 \ - --hash=sha256:d43943ef777f9a1c42bf4e552ba23ac77a6351de620aa9acf64ad54933ad4d34 \ - --hash=sha256:d5d33e9e7af3b34a40dc05f498939f0ebf187f07c385fd58d591c533ad8562fe \ - --hash=sha256:fc0fea399acb12edbf8a628ba8d2312f583bdbdb3335635db062fa98cf71fca4 \ - --hash=sha256:fe460b922ec15dd205595c9b5b99e2f056fd98ae8f9f56b888e7a17dc2b757e7 \ - # via black, mypy -typing-extensions==3.7.4.1 \ - --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ - --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ - --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 -uritemplate==3.0.1 \ - --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ - --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae -wcwidth==0.1.8 \ - --hash=sha256:8fd29383f539be45b20bd4df0dc29c20ba48654a41e661925e612311e9f3c603 \ - --hash=sha256:f28b3e8a6483e5d49e7f8949ac1a78314e740333ae305b4ba5defd3e74fb37a8 \ - # via pytest -yarl==1.4.2 \ - --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ - --hash=sha256:0ca2f395591bbd85ddd50a82eb1fde9c1066fafe888c5c7cc1d810cf03fd3cc6 \ - --hash=sha256:2098a4b4b9d75ee352807a95cdf5f10180db903bc5b7270715c6bbe2551f64ce \ - --hash=sha256:25e66e5e2007c7a39541ca13b559cd8ebc2ad8fe00ea94a2aad28a9b1e44e5ae \ - --hash=sha256:26d7c90cb04dee1665282a5d1a998defc1a9e012fdca0f33396f81508f49696d \ - --hash=sha256:308b98b0c8cd1dfef1a0311dc5e38ae8f9b58349226aa0533f15a16717ad702f \ - --hash=sha256:3ce3d4f7c6b69c4e4f0704b32eca8123b9c58ae91af740481aa57d7857b5e41b \ - --hash=sha256:58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b \ - --hash=sha256:5b10eb0e7f044cf0b035112446b26a3a2946bca9d7d7edb5e54a2ad2f6652abb \ - --hash=sha256:6faa19d3824c21bcbfdfce5171e193c8b4ddafdf0ac3f129ccf0cdfcb083e462 \ - --hash=sha256:944494be42fa630134bf907714d40207e646fd5a94423c90d5b514f7b0713fea \ - --hash=sha256:a161de7e50224e8e3de6e184707476b5a989037dcb24292b391a3d66ff158e70 \ - --hash=sha256:a4844ebb2be14768f7994f2017f70aca39d658a96c786211be5ddbe1c68794c1 \ - --hash=sha256:c2b509ac3d4b988ae8769901c66345425e361d518aecbe4acbfc2567e416626a \ - --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ - --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ - --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 -zipp==2.1.0 \ - --hash=sha256:ccc94ed0909b58ffe34430ea5451f07bc0c76467d7081619a454bf5c98b89e28 \ - --hash=sha256:feae2f18633c32fc71f2de629bfb3bd3c9325cd4419642b1f1da42ee488d9b98 \ - # via importlib-metadata diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index 765bcbb..0000000 --- a/mypy.ini +++ /dev/null @@ -1,7 +0,0 @@ -[mypy] -warn_return_any = True -warn_unused_configs = True -warn_unused_ignores = True - -[mypy-azure.*] -ignore_missing_imports = True From 934c886ac39ab900b5af6f1a2f5d77a04bec5626 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 10 Sep 2024 03:21:17 +0300 Subject: [PATCH 41/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 719150c6cc5d3bc8cf83074d79a2eaf6b4f194d3 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 10 Sep 2024 23:44:48 +0300 Subject: [PATCH 42/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From ac0b8c0eceb1ec7b7d13784e22d8c344d45c393c Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 11 Sep 2024 00:55:53 +0300 Subject: [PATCH 43/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From bcff4ebc05a900a207753812db9c177f135aad04 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 12 Sep 2024 13:52:12 +0300 Subject: [PATCH 44/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From a27020969f6899112118ca6a30ef43c2240d0063 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 12 Sep 2024 14:07:14 +0300 Subject: [PATCH 45/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 153ac0359dac76b82afd2bf449787c298fa4161e Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 15 Sep 2024 19:36:57 +0300 Subject: [PATCH 46/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 874126abcaf58132866ff66af8135bd08b9bd3d2 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 16 Sep 2024 11:36:34 +0300 Subject: [PATCH 47/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 5f84c7cb62b226ee3d5ba39f8af39fb0379be1cf Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 18 Sep 2024 11:51:52 +0300 Subject: [PATCH 48/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 69d4aaf761fa078f03aeaf8c672ea24bb4e29886 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 18 Sep 2024 13:29:39 +0300 Subject: [PATCH 49/67] --- .gitignore | 24 ------------------------ __app__/.gitignore | 5 +---- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index 63b7463..e3d88d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,11 @@ -# Functions pvscbot*.zip -# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class -# C extensions *.so -# Distribution / packaging .Python build/ develop-eggs/ @@ -28,17 +24,12 @@ wheels/ *.egg MANIFEST -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec -# Installer logs pip-log.txt pip-delete-this-directory.txt -# Unit test / coverage reports htmlcov/ .tox/ .coverage @@ -50,41 +41,30 @@ coverage.xml .hypothesis/ .pytest_cache/ -# Translations *.mo *.pot -# Django stuff: *.log local_settings.py db.sqlite3 -# Flask stuff: instance/ .webassets-cache -# Scrapy stuff: .scrapy -# Sphinx documentation docs/_build/ -# PyBuilder target/ -# Jupyter Notebook .ipynb_checkpoints -# pyenv .python-version -# celery beat schedule file celerybeat-schedule -# SageMath parsed files *.sage.py -# Environments .env .venv env/ @@ -93,15 +73,11 @@ ENV/ env.bak/ venv.bak/ -# Spyder project settings .spyderproject .spyproject -# Rope project settings .ropeproject -# mkdocs documentation /site -# mypy .mypy_cache/ diff --git a/__app__/.gitignore b/__app__/.gitignore index fbbe2ef..765643d 100644 --- a/__app__/.gitignore +++ b/__app__/.gitignore @@ -25,10 +25,8 @@ local.settings.json node_modules dist -# Local python packages .python_packages/ -# Python Environments .env .venv env/ @@ -37,7 +35,6 @@ ENV/ env.bak/ venv.bak/ -# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] -*$py.class \ No newline at end of file +*$py.class From e6e5fdf42138b52da31a15696ddcad47cf3b659d Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 19 Sep 2024 13:36:11 +0300 Subject: [PATCH 50/67] --- .gitignore | 24 ------------------------ __app__/.gitignore | 5 +---- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index 63b7463..e3d88d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,11 @@ -# Functions pvscbot*.zip -# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class -# C extensions *.so -# Distribution / packaging .Python build/ develop-eggs/ @@ -28,17 +24,12 @@ wheels/ *.egg MANIFEST -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec -# Installer logs pip-log.txt pip-delete-this-directory.txt -# Unit test / coverage reports htmlcov/ .tox/ .coverage @@ -50,41 +41,30 @@ coverage.xml .hypothesis/ .pytest_cache/ -# Translations *.mo *.pot -# Django stuff: *.log local_settings.py db.sqlite3 -# Flask stuff: instance/ .webassets-cache -# Scrapy stuff: .scrapy -# Sphinx documentation docs/_build/ -# PyBuilder target/ -# Jupyter Notebook .ipynb_checkpoints -# pyenv .python-version -# celery beat schedule file celerybeat-schedule -# SageMath parsed files *.sage.py -# Environments .env .venv env/ @@ -93,15 +73,11 @@ ENV/ env.bak/ venv.bak/ -# Spyder project settings .spyderproject .spyproject -# Rope project settings .ropeproject -# mkdocs documentation /site -# mypy .mypy_cache/ diff --git a/__app__/.gitignore b/__app__/.gitignore index fbbe2ef..765643d 100644 --- a/__app__/.gitignore +++ b/__app__/.gitignore @@ -25,10 +25,8 @@ local.settings.json node_modules dist -# Local python packages .python_packages/ -# Python Environments .env .venv env/ @@ -37,7 +35,6 @@ ENV/ env.bak/ venv.bak/ -# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] -*$py.class \ No newline at end of file +*$py.class From 2153fe87e541986583a5e439d923fbe9a36613b2 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 19 Sep 2024 17:53:04 +0300 Subject: [PATCH 51/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 208c98ee6316f6367c3a585797834186ae6f67e7 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 20 Sep 2024 15:48:13 +0300 Subject: [PATCH 52/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From df58af0e7a1986c7df57fd2b5f64c07ae9e925e7 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 20 Sep 2024 18:09:56 +0300 Subject: [PATCH 53/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From bb46948899746aff667ffb273e1d2d15783ce574 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 20 Sep 2024 20:05:04 +0300 Subject: [PATCH 54/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From d655835839996e961b7ae1ae3e86740210de81db Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 20 Sep 2024 20:50:55 +0300 Subject: [PATCH 55/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From e2b8da74bed2453e097240f0db183e7358ef6577 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 3 Oct 2024 05:47:17 +0300 Subject: [PATCH 56/67] --- .github/workflows/main.yml | 96 ---- tests/__init__.py | 0 tests/test_ghutils/__init__.py | 0 tests/test_ghutils/test_ping.py | 33 -- tests/test_ghutils/test_server.py | 62 -- tests/test_github/__init__.py | 0 tests/test_github/samples/__init__.py | 0 tests/test_github/samples/issues-closed.json | 213 ------- .../samples/issues-labeled-classify.json | 199 ------- .../issues-labeled-classify_on_closed.json | 199 ------- .../samples/issues-labeled-has_classify.json | 245 -------- ...eled-has_classify_adding_data_science.json | 241 -------- ...es-labeled-has_classify_adding_triage.json | 241 -------- .../samples/issues-labeled-no_classify.json | 237 -------- .../samples/issues-opened-data_science.json | 205 ------- .../issues-opened-labels_but_no_status.json | 205 ------- tests/test_github/samples/issues-opened.json | 184 ------ .../samples/issues-opened_with_labels.json | 213 ------- .../samples/issues-reopened-no_labels.json | 220 ------- ...ssues-unlabeled-closed_with_no_labels.json | 232 -------- .../samples/issues-unlabeled-no_labels.json | 228 -------- .../samples/issues-unlabeled-no_status.json | 237 -------- .../samples/pull_request-files.json | 86 --- .../pull_request-labeled-skip_news.json | 540 ------------------ .../pull_request-reopened-skip_news.json | 524 ----------------- .../pull_request-unlabeled-skip_news.json | 523 ----------------- tests/test_github/test_classify.py | 272 --------- tests/test_github/test_closed.py | 36 -- tests/test_github/test_main.py | 93 --- 29 files changed, 5564 deletions(-) delete mode 100644 .github/workflows/main.yml delete mode 100644 tests/__init__.py delete mode 100644 tests/test_ghutils/__init__.py delete mode 100644 tests/test_ghutils/test_ping.py delete mode 100644 tests/test_ghutils/test_server.py delete mode 100644 tests/test_github/__init__.py delete mode 100644 tests/test_github/samples/__init__.py delete mode 100644 tests/test_github/samples/issues-closed.json delete mode 100644 tests/test_github/samples/issues-labeled-classify.json delete mode 100644 tests/test_github/samples/issues-labeled-classify_on_closed.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json delete mode 100644 tests/test_github/samples/issues-labeled-has_classify_adding_triage.json delete mode 100644 tests/test_github/samples/issues-labeled-no_classify.json delete mode 100644 tests/test_github/samples/issues-opened-data_science.json delete mode 100644 tests/test_github/samples/issues-opened-labels_but_no_status.json delete mode 100644 tests/test_github/samples/issues-opened.json delete mode 100644 tests/test_github/samples/issues-opened_with_labels.json delete mode 100644 tests/test_github/samples/issues-reopened-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_labels.json delete mode 100644 tests/test_github/samples/issues-unlabeled-no_status.json delete mode 100644 tests/test_github/samples/pull_request-files.json delete mode 100644 tests/test_github/samples/pull_request-labeled-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-reopened-skip_news.json delete mode 100644 tests/test_github/samples/pull_request-unlabeled-skip_news.json delete mode 100644 tests/test_github/test_classify.py delete mode 100644 tests/test_github/test_closed.py delete mode 100644 tests/test_github/test_main.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 8bc177f..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,96 +0,0 @@ -name: CI - -on: - pull_request: - push: - branches: - - master - -jobs: - test: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install dev dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - name: "Run tests" - run: python -m pytest --cov --cov-config=.coveragerc tests/ - env: - PYTHONDEVMODE: 1 - - run: python -m coverage html - - uses: actions/upload-artifact@v1 - with: - name: "HTML coverage report" - path: htmlcov - - - lint: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: "3.7" - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Install tools - run: | - python -m pip install --upgrade pip - python -m pip install -r dev-requirements.txt - - run: mypy --config-file=mypy.ini __app__ - - run: black --check . - - - deploy: - - if: github.event_name == 'push' && github.repository == 'microsoft/pvscbot' && github.ref == 'refs/heads/master' - needs: [test, lint] - runs-on: ubuntu-18.04 - env: - APP_LOCATION: __app__ - PYTHON_VERSION: "3.7" - - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 - with: - python-version: ${{ env.PYTHON_VERSION }} - - uses: actions/cache@v1 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: 'Run pip' - shell: bash - run: | - # If your function app project is not located in your repository's root - # Please change your directory for pip in pushd - pushd ${{ env.APP_LOCATION }} - python -m pip install --upgrade pip - pip install -r requirements.txt --target=".python_packages/lib/site-packages" - popd - - uses: Azure/functions-action@v1 - with: - app-name: pvscbot-functions - package: ${{ env.APP_LOCATION }} - publish-profile: ${{ secrets.SCM_CREDENTIALS }} diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/__init__.py b/tests/test_ghutils/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_ghutils/test_ping.py b/tests/test_ghutils/test_ping.py deleted file mode 100644 index 79abb1f..0000000 --- a/tests/test_ghutils/test_ping.py +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.sansio -import pytest - -from __app__.ghutils import ping - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_ping(): - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - await ping.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_ping_logging(): - logger = Logger() - gh = object() - event = gidgethub.sansio.Event({}, event="ping", delivery_id="12345") - - await ping.router.dispatch(event, gh, logger=logger) - assert len(logger._logged) == 1 - assert "ping" in logger._logged[0] diff --git a/tests/test_ghutils/test_server.py b/tests/test_ghutils/test_server.py deleted file mode 100644 index 2bb1854..0000000 --- a/tests/test_ghutils/test_server.py +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import gidgethub.routing -import pytest - -from __app__.ghutils import server - - -class Logger: - def __init__(self): - self._logged = [] - - def info(self, message): - self._logged.append(message) - - -@pytest.mark.asyncio -async def test_event_creation_and_routing(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - route_hit = None - - @router.register("pull_request", action="opened") - async def routed(*args, **kwargs): - nonlocal route_hit - route_hit = args, kwargs - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert route_hit[0][0].event == "pull_request" # Test event creation. - assert route_hit[0][1] == gh # Test routing. - assert route_hit[1]["logger"] is logger # Test logger passed into routes. - - -@pytest.mark.asyncio -async def test_logging(): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - router = gidgethub.routing.Router() - gh = object() - logger = Logger() - - await server.serve(gh, router, headers, body, secret=secret, logger=logger, pause=0) - assert headers["x-github-delivery"] in logger._logged[0] - - # Setting a logger is optional. - await server.serve(gh, router, headers, body, secret=secret, logger=None, pause=0) diff --git a/tests/test_github/__init__.py b/tests/test_github/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/__init__.py b/tests/test_github/samples/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_github/samples/issues-closed.json b/tests/test_github/samples/issues-closed.json deleted file mode 100644 index 22d6946..0000000 --- a/tests/test_github/samples/issues-closed.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:27:18Z", - "closed_at": "2018-11-23T23:27:18Z", - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 547, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 547, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify.json b/tests/test_github/samples/issues-labeled-classify.json deleted file mode 100644 index 22ec19a..0000000 --- a/tests/test_github/samples/issues-labeled-classify.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-classify_on_closed.json b/tests/test_github/samples/issues-labeled-classify_on_closed.json deleted file mode 100644 index d644020..0000000 --- a/tests/test_github/samples/issues-labeled-classify_on_closed.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3765/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3765", - "id": 393171033, - "node_id": "MDU6SXNzdWUzOTMxNzEwMzM=", - "number": 3765, - "title": "feature-request Auto \"self.\" inside class", - "user": { - "login": "jcrmatos", - "id": 1813375, - "node_id": "MDQ6VXNlcjE4MTMzNzU=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1813375?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/jcrmatos", - "html_url": "https://github.com/jcrmatos", - "followers_url": "https://api.github.com/users/jcrmatos/followers", - "following_url": "https://api.github.com/users/jcrmatos/following{/other_user}", - "gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}", - "starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions", - "organizations_url": "https://api.github.com/users/jcrmatos/orgs", - "repos_url": "https://api.github.com/users/jcrmatos/repos", - "events_url": "https://api.github.com/users/jcrmatos/events{/privacy}", - "received_events_url": "https://api.github.com/users/jcrmatos/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - } - ], - "state": "closed", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-12-20T18:56:35Z", - "updated_at": "2018-12-21T00:21:37Z", - "closed_at": null, - "author_association": "NONE", - "body": "Consider adding the possibility (and a setting for those who don't like the feature to disable it) of automatically prefixing \"self.\" to variables/constants inside a class if the same name is already declared above with \"self.\"." - }, - "label": { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-20T23:44:05Z", - "pushed_at": "2018-12-20T23:44:03Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61393, - "stargazers_count": 1026, - "watchers_count": 1026, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 590, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 590, - "watchers": 1026, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "pvscbot", - "id": 45471937, - "node_id": "MDQ6VXNlcjQ1NDcxOTM3", - "avatar_url": "https://avatars1.githubusercontent.com/u/45471937?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/pvscbot", - "html_url": "https://github.com/pvscbot", - "followers_url": "https://api.github.com/users/pvscbot/followers", - "following_url": "https://api.github.com/users/pvscbot/following{/other_user}", - "gists_url": "https://api.github.com/users/pvscbot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/pvscbot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/pvscbot/subscriptions", - "organizations_url": "https://api.github.com/users/pvscbot/orgs", - "repos_url": "https://api.github.com/users/pvscbot/repos", - "events_url": "https://api.github.com/users/pvscbot/events{/privacy}", - "received_events_url": "https://api.github.com/users/pvscbot/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify.json b/tests/test_github/samples/issues-labeled-has_classify.json deleted file mode 100644 index 53b5db7..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json b/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json deleted file mode 100644 index 11c09ef..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_data_science.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "data science" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json b/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json deleted file mode 100644 index 9d1e4ee..0000000 --- a/tests/test_github/samples/issues-labeled-has_classify_adding_triage.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1138174523, - "node_id": "MDU6TGFiZWwxMTM4MTc0NTIz", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/classify", - "name": "classify", - "color": "bbe560", - "default": false - }, - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/triage", - "name": "triage" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-labeled-no_classify.json b/tests/test_github/samples/issues-labeled-no_classify.json deleted file mode 100644 index db33d67..0000000 --- a/tests/test_github/samples/issues-labeled-no_classify.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T21:56:50Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:56:06Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-data_science.json b/tests/test_github/samples/issues-opened-data_science.json deleted file mode 100644 index 79b5dd9..0000000 --- a/tests/test_github/samples/issues-opened-data_science.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "data science", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened-labels_but_no_status.json b/tests/test_github/samples/issues-opened-labels_but_no_status.json deleted file mode 100644 index 56120cd..0000000 --- a/tests/test_github/samples/issues-opened-labels_but_no_status.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened.json b/tests/test_github/samples/issues-opened.json deleted file mode 100644 index aa6c48e..0000000 --- a/tests/test_github/samples/issues-opened.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3451/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3451", - "id": 383871352, - "node_id": "MDU6SXNzdWUzODM4NzEzNTI=", - "number": 3451, - "title": "print_function from __future__ generates warning", - "user": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [ - - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T15:58:19Z", - "updated_at": "2018-11-23T15:58:19Z", - "closed_at": null, - "author_association": "NONE", - "body": "## Environment data\r\n\r\n- VS Code version: 1.29.2\r\n- Extension version (available under the Extensions sidebar): 2018.10.1\r\n- OS and version: linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): no \r\n\r\nSnippet:\r\n```python\r\nfrom __future__ import print_function\r\n\r\nimport sys\r\nimport re\r\nprint(1)\r\n```\r\n\r\nWarning: 'print' used bebore definition" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T13:53:02Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 958, - "watchers_count": 958, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 958, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "Yanpas", - "id": 7345761, - "node_id": "MDQ6VXNlcjczNDU3NjE=", - "avatar_url": "https://avatars0.githubusercontent.com/u/7345761?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Yanpas", - "html_url": "https://github.com/Yanpas", - "followers_url": "https://api.github.com/users/Yanpas/followers", - "following_url": "https://api.github.com/users/Yanpas/following{/other_user}", - "gists_url": "https://api.github.com/users/Yanpas/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Yanpas/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Yanpas/subscriptions", - "organizations_url": "https://api.github.com/users/Yanpas/orgs", - "repos_url": "https://api.github.com/users/Yanpas/repos", - "events_url": "https://api.github.com/users/Yanpas/events{/privacy}", - "received_events_url": "https://api.github.com/users/Yanpas/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-opened_with_labels.json b/tests/test_github/samples/issues-opened_with_labels.json deleted file mode 100644 index 34ebb45..0000000 --- a/tests/test_github/samples/issues-opened_with_labels.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3453", - "id": 383940383, - "node_id": "MDU6SXNzdWUzODM5NDAzODM=", - "number": 3453, - "title": "An issue already triaged", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 717153660, - "node_id": "MDU6TGFiZWw3MTcxNTM2NjA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/feature-*", - "name": "feature-*", - "color": "006b75", - "default": false - }, - { - "id": 1039483691, - "node_id": "MDU6TGFiZWwxMDM5NDgzNjkx", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20spec", - "name": "needs spec", - "color": "fbca04", - "default": false - }, - { - "id": 717072030, - "node_id": "MDU6TGFiZWw3MTcwNzIwMzA=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/type-code%20health", - "name": "type-code health", - "color": "f9d0c4", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": null, - "assignees": [], - "milestone": null, - "comments": 0, - "created_at": "2018-11-23T23:16:39Z", - "updated_at": "2018-11-23T23:16:39Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "This is to help with #3327 ." - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-11-23T19:54:09Z", - "pushed_at": "2018-11-22T19:40:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 60641, - "stargazers_count": 959, - "watchers_count": 959, - "language": "TypeScript", - "has_issues": true, - "has_projects": true, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 196, - "mirror_url": null, - "archived": false, - "open_issues_count": 548, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 196, - "open_issues": 548, - "watchers": 959, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-reopened-no_labels.json b/tests/test_github/samples/issues-reopened-no_labels.json deleted file mode 100644 index 99e9e9e..0000000 --- a/tests/test_github/samples/issues-reopened-no_labels.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:20:24Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json b/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json deleted file mode 100644 index e181afb..0000000 --- a/tests/test_github/samples/issues-unlabeled-closed_with_no_labels.json +++ /dev/null @@ -1,232 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "name": "data science" - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "classify", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_labels.json b/tests/test_github/samples/issues-unlabeled-no_labels.json deleted file mode 100644 index c89f7e9..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_labels.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:14:23Z", - "closed_at": null, - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1111945855, - "node_id": "MDU6TGFiZWwxMTExOTQ1ODU1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/data%20science", - "name": "data science", - "color": "6f23db", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 585, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 585, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/issues-unlabeled-no_status.json b/tests/test_github/samples/issues-unlabeled-no_status.json deleted file mode 100644 index ed25964..0000000 --- a/tests/test_github/samples/issues-unlabeled-no_status.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327", - "repository_url": "https://api.github.com/repos/Microsoft/vscode-python", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels{/name}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/comments", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/events", - "html_url": "https://github.com/Microsoft/vscode-python/issues/3327", - "id": 380436367, - "node_id": "MDU6SXNzdWUzODA0MzYzNjc=", - "number": 3327, - "title": "Automate GitHub workflow", - "user": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - } - ], - "state": "open", - "locked": false, - "assignee": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - "assignees": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } - ], - "milestone": null, - "comments": 0, - "created_at": "2018-11-13T21:40:36Z", - "updated_at": "2018-12-19T22:12:05Z", - "closed_at": "2018-12-19T22:06:56Z", - "author_association": "MEMBER", - "body": "In order of broad usage -- data science team is taking a \"wait and see\" approach to this -- and ease of implementation:\r\n\r\n- [ ] Respond to a ping event\r\n- [ ] Label new issues with `classify`\r\n- [ ] Strip all irrelevant labels from closed issues\r\n- [ ] Add a news entry status check\r\n- [ ] When labelled `triage`, randomly assign issue to someone on the team\r\n- [ ] When `triage` label removed then also remove assignee\r\n- [ ] When a PR has been merged, mark as `validate fix`\r\n- [ ] Once a `feature`, `type`, and appropriate `needs` label is set on an issue then remove `triage` label\r\n- [ ] When an issue is assigned to someone and labelled `needs PR` then change to `in progress`\r\n- [ ] When an issue is marked as `in progress`, make sure it is assigned to the current milestone (and add the `unplanned` label if it isn't)\r\n- [ ] When an issue marked as `in progress` is unassigned, mark as `needs PR`\r\n- [ ] When a PR is opened, mark issue as `review`\r\n- [ ] When an external contributor opens a PR, mark the PR and related issue as `external contributor` (might need to get issue # from initial message in case they don't have a news entry yet; also be ready to have to pick up on message edits)\r\n- [ ] When an external contributor opens a PR, leave a comment thanking them and saying we should get to it no later than during our next sprint\r\n- [ ] When an external contributor opens a PR, add to the next sprint\r\n- [ ] When an issue is closed but not merged, update the related issue accordingly\r\n- [ ] When an issue is closed as fixed that was opened by someone other than a team member, add a comment about testing the fix\r\n\r\nUnder consideration:\r\n- When an issue is labelled `info needed`, remove that label when the person who was requested to provide more info has replied (i.e. when a comment says \"Question for @...\", then remove `info needed` when \"@...\" replies)\r\n- When an issue is marked as `needs upstream fix` for language server or ptvsd, create a matching issue in the appropriate issue tracker, leave a comment about the matching issue, and then lock the issue here\r\n- When a referenced issue for the language server or ptvsd is closed, close the matching issue here\r\n- Check for a copyright header for new files created by team members" - }, - "label": { - "id": 1159648198, - "node_id": "MDU6TGFiZWwxMTU5NjQ4MTk4", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/external%20contributor", - "name": "external contributor", - "color": "7057ff", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-19T18:19:31Z", - "pushed_at": "2018-12-19T21:58:38Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61350, - "stargazers_count": 1025, - "watchers_count": 1025, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 214, - "mirror_url": null, - "archived": false, - "open_issues_count": 584, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 214, - "open_issues": 584, - "watchers": 1025, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-files.json b/tests/test_github/samples/pull_request-files.json deleted file mode 100644 index 43f571f..0000000 --- a/tests/test_github/samples/pull_request-files.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "sha": "bd68f7a02549f7b1a4d8fdcce04fb2bb2193a9ec", - "filename": ".travis.yml", - "status": "modified", - "additions": 2, - "deletions": 5, - "changes": 7, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/.travis.yml", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/.travis.yml?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -55,7 +55,6 @@ before_install: |\n nvm use 8.9.1\n npm install npm@latest -g\n npm install -g vsce\n- npm install -g azure-cli\n export CI_PYTHON_PATH=`which python`\n install:\n - travis_wait 5 npm ci\n@@ -97,18 +96,16 @@ script:\n python3 -m pip install --upgrade -r tpn/requirements.txt;\n python3 tpn --npm package-lock.json --config tpn/distribution.toml /dev/null;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n- - if [[ $BUNDLE == \"true\" && $AZURE_STORAGE_ACCOUNT && \"$TRAVIS_BRANCH\" == release* && \"$TRAVIS_PULL_REQUEST\" == \"false\" ]]; then\n+ - if [[ $BUNDLE == \"true\"]]; then\n npm run clean;\n npm run package;\n npx gulp clean:cleanExceptTests;\n npm run testSmoke;\n- azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-$TRAVIS_BRANCH.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;\n fi\n - bash <(curl -s https://codecov.io/bash)" - }, - { - "sha": "f200fa0fbef71afb1612ffcbc95d1f4f6bce9c06", - "filename": "news/3 Code Health/3684.md", - "status": "added", - "additions": 1, - "deletions": 0, - "changes": 1, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/news/3%20Code%20Health/3684.md", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/news/3%20Code%20Health/3684.md?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1 @@\n+Fixed language server smoke tests." - }, - { - "sha": "ce42dc937372b5532acd1cdd5e30ee7408bc2618", - "filename": "src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "status": "removed", - "additions": 0, - "deletions": 106, - "changes": 106, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/7ea52079acd5069a7d5d155ddbf358daa15b53c9/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/_run_first_msLanguageServer.smoke.test.ts?ref=7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "patch": "@@ -1,106 +0,0 @@\n-// Copyright (c) Microsoft Corporation. All rights reserved.\n-// Licensed under the MIT License.\n-\n-'use strict';\n-\n-// tslint:disable:max-func-body-length no-invalid-this no-any\n-\n-import * as assert from 'assert';\n-import { expect } from 'chai';\n-import * as fs from 'fs-extra';\n-import * as glob from 'glob';\n-import * as path from 'path';\n-import * as vscode from 'vscode';\n-import { waitForCondition } from '../common';\n-import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n-import { noop, sleep } from '../core';\n-import { closeActiveWindows, initialize, initializeTest } from '../initialize';\n-\n-const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n-\n-suite('Smoke Test: Language Server', function () {\n- // Large value to allow for LS to get downloaded.\n- this.timeout(4 * 60000);\n-\n- suiteSetup(async function () {\n- if (!IS_SMOKE_TEST) {\n- return this.skip();\n- }\n- await removeLanguageServerFiles();\n- await enableJedi(false);\n- await updateSetting('linting.ignorePatterns', ['**/dir1/**']);\n- await initialize();\n- });\n- setup(initializeTest);\n- suiteTeardown(async () => {\n- await enableJedi(undefined);\n- await closeActiveWindows();\n- await updateSetting('linting.ignorePatterns', undefined);\n- });\n- teardown(closeActiveWindows);\n- async function updateSetting(setting: string, value: any) {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n- }\n- async function removeLanguageServerFiles() {\n- const folders = await getLanaguageServerFolders();\n- await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n- }\n- async function isLanguageServerDownloaded() {\n- // tslint:disable-next-line:no-unnecessary-local-variable\n- const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n- return downloaded;\n- }\n- async function getLanaguageServerFolders(): Promise {\n- return new Promise((resolve, reject) => {\n- glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n- ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n- });\n- });\n- }\n- function isJediEnabled() {\n- const resource = vscode.workspace.workspaceFolders![0].uri;\n- const settings = vscode.workspace.getConfiguration('python', resource);\n- return settings.get('jediEnabled') === true;\n- }\n- async function enableJedi(enable: boolean | undefined) {\n- if (isJediEnabled() === enable) {\n- return;\n- }\n- await updateSetting('jediEnabled', enable);\n- }\n-\n- async function openFile(file: string): Promise {\n- const textDocument = await vscode.workspace.openTextDocument(file);\n- await vscode.window.showTextDocument(textDocument);\n- assert(vscode.window.activeTextEditor, 'No active editor');\n- // Make sure LS completes file loading and analysis.\n- // In test mode it awaits for the completion before trying\n- // to fetch data for completion, hover.etc.\n- await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n- await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n- // For for LS to get extracted.\n- await sleep(10_000);\n- return textDocument;\n- }\n-\n- test('Definitions', async () => {\n- const startPosition = new vscode.Position(13, 6);\n- const textDocument = await openFile(fileDefinitions);\n- let tested = false;\n- for (let i = 0; i < 5; i += 1) {\n- const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n- if (locations && locations.length > 0) {\n- expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n- tested = true;\n- break;\n- } else {\n- // Wait for LS to start.\n- await sleep(5_000);\n- }\n- }\n- if (!tested) {\n- assert.fail('Failled to test definitions');\n- }\n- });\n-});" - }, - { - "sha": "0b8bfe2e62a55031fcc52bccd58c045220c75f5c", - "filename": "src/test/smoke/common.ts", - "status": "added", - "additions": 76, - "deletions": 0, - "changes": 76, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/common.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/common.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,76 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:no-any no-invalid-this no-default-export no-console\n+\n+import * as assert from 'assert';\n+import * as fs from 'fs-extra';\n+import * as glob from 'glob';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { waitForCondition } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST, SMOKE_TEST_EXTENSIONS_DIR } from '../constants';\n+import { noop, sleep } from '../core';\n+import { initialize } from '../initialize';\n+\n+let initialized = false;\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+export async function initializeSmokeTests() {\n+ if (!IS_SMOKE_TEST || initialized) {\n+ return;\n+ }\n+ await removeLanguageServerFiles();\n+ await enableJedi(false);\n+ await initialize();\n+ await openFileAndWaitForLS(fileDefinitions);\n+ initialized = true;\n+}\n+\n+export async function updateSetting(setting: string, value: any) {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ await vscode.workspace.getConfiguration('python', resource).update(setting, value, vscode.ConfigurationTarget.WorkspaceFolder);\n+}\n+export async function removeLanguageServerFiles() {\n+ const folders = await getLanaguageServerFolders();\n+ await Promise.all(folders.map(item => fs.remove(item).catch(noop)));\n+}\n+async function getLanaguageServerFolders(): Promise {\n+ return new Promise((resolve, reject) => {\n+ glob('languageServer.*', { cwd: SMOKE_TEST_EXTENSIONS_DIR }, (ex, matches) => {\n+ ex ? reject(ex) : resolve(matches.map(item => path.join(SMOKE_TEST_EXTENSIONS_DIR, item)));\n+ });\n+ });\n+}\n+export function isJediEnabled() {\n+ const resource = vscode.workspace.workspaceFolders![0].uri;\n+ const settings = vscode.workspace.getConfiguration('python', resource);\n+ return settings.get('jediEnabled') === true;\n+}\n+export async function enableJedi(enable: boolean | undefined) {\n+ if (isJediEnabled() === enable) {\n+ return;\n+ }\n+ await updateSetting('jediEnabled', enable);\n+}\n+export async function openFileAndWaitForLS(file: string): Promise {\n+ const textDocument = await vscode.workspace.openTextDocument(file);\n+ await vscode.window.showTextDocument(textDocument);\n+ assert(vscode.window.activeTextEditor, 'No active editor');\n+ // Make sure LS completes file loading and analysis.\n+ // In test mode it awaits for the completion before trying\n+ // to fetch data for completion, hover.etc.\n+ await vscode.commands.executeCommand('vscode.executeCompletionItemProvider', textDocument.uri, new vscode.Position(0, 0));\n+ await waitForCondition(isLanguageServerDownloaded, 30_000, 'Language Server not downloaded');\n+ // For for LS to get extracted.\n+ await sleep(10_000);\n+ return textDocument;\n+}\n+\n+async function isLanguageServerDownloaded() {\n+ // tslint:disable-next-line:no-unnecessary-local-variable\n+ const downloaded = await getLanaguageServerFolders().then(items => items.length > 0);\n+ return downloaded;\n+}" - }, - { - "sha": "1d4f0c08c314a21426d7f3aa76b14be5b5716f08", - "filename": "src/test/smoke/debugger.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/debugger.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/debugger.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -12,15 +12,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Debug file', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - }, - { - "sha": "c409d63c459c23664082a6c65cc7f09b06e9d853", - "filename": "src/test/smoke/msLanguageServer.smoke.test.ts", - "status": "added", - "additions": 61, - "deletions": 0, - "changes": 61, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/msLanguageServer.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/msLanguageServer.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -0,0 +1,61 @@\n+// Copyright (c) Microsoft Corporation. All rights reserved.\n+// Licensed under the MIT License.\n+\n+'use strict';\n+\n+// tslint:disable:max-func-body-length no-invalid-this no-any\n+\n+import * as assert from 'assert';\n+import { expect } from 'chai';\n+import * as path from 'path';\n+import * as vscode from 'vscode';\n+import { updateSetting } from '../common';\n+import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n+import { sleep } from '../core';\n+import { closeActiveWindows, initializeTest } from '../initialize';\n+import { enableJedi, initializeSmokeTests, openFileAndWaitForLS } from './common';\n+\n+const fileDefinitions = path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'src', 'testMultiRootWkspc', 'smokeTests', 'definitions.py');\n+\n+suite('Smoke Test: Language Server', function () {\n+ // Large value to allow for LS to get downloaded.\n+ this.timeout(4 * 60000);\n+\n+ suiteSetup(async function () {\n+ if (!IS_SMOKE_TEST) {\n+ return this.skip();\n+ }\n+ await updateSetting('linting.ignorePatterns', ['**/dir1/**'], vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ await initializeSmokeTests();\n+ });\n+ setup(async () => {\n+ await initializeTest();\n+ await closeActiveWindows();\n+ });\n+ suiteTeardown(async () => {\n+ await enableJedi(undefined);\n+ await closeActiveWindows();\n+ await updateSetting('linting.ignorePatterns', undefined, vscode.workspace.workspaceFolders![0].uri, vscode.ConfigurationTarget.WorkspaceFolder);\n+ });\n+ teardown(closeActiveWindows);\n+\n+ test('Definitions', async () => {\n+ const startPosition = new vscode.Position(13, 6);\n+ const textDocument = await openFileAndWaitForLS(fileDefinitions);\n+ let tested = false;\n+ for (let i = 0; i < 5; i += 1) {\n+ const locations = await vscode.commands.executeCommand('vscode.executeDefinitionProvider', textDocument.uri, startPosition);\n+ if (locations && locations.length > 0) {\n+ expect(locations![0].uri.fsPath).to.contain(path.basename(fileDefinitions));\n+ tested = true;\n+ break;\n+ } else {\n+ // Wait for LS to start.\n+ await sleep(5_000);\n+ }\n+ }\n+ if (!tested) {\n+ assert.fail('Failled to test definitions');\n+ }\n+ });\n+});" - }, - { - "sha": "7b5ca203f7115c3698431b56e92ed24bb267c90f", - "filename": "src/test/smoke/runInTerminal.smoke.test.ts", - "status": "modified", - "additions": 3, - "deletions": 1, - "changes": 4, - "blob_url": "https://github.com/Microsoft/vscode-python/blob/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "raw_url": "https://github.com/Microsoft/vscode-python/raw/f1013549456d13eb15dab4fffaa6cfe172b4244e/src/test/smoke/runInTerminal.smoke.test.ts", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/src/test/smoke/runInTerminal.smoke.test.ts?ref=f1013549456d13eb15dab4fffaa6cfe172b4244e", - "patch": "@@ -11,15 +11,17 @@ import * as vscode from 'vscode';\n import { openFile, waitForCondition } from '../common';\n import { EXTENSION_ROOT_DIR_FOR_TESTS, IS_SMOKE_TEST } from '../constants';\n import { closeActiveWindows, initializeTest } from '../initialize';\n+import { initializeSmokeTests } from './common';\n \n suite('Smoke Test: Run Python File In Terminal', function () {\n // Large value to allow for LS to get downloaded.\n this.timeout(4 * 60_000);\n \n- suiteSetup(function () {\n+ suiteSetup(async function () {\n if (!IS_SMOKE_TEST) {\n return this.skip();\n }\n+ await initializeSmokeTests();\n });\n setup(initializeTest);\n suiteTeardown(closeActiveWindows);" - } -] diff --git a/tests/test_github/samples/pull_request-labeled-skip_news.json b/tests/test_github/samples/pull_request-labeled-skip_news.json deleted file mode 100644 index 9b1c317..0000000 --- a/tests/test_github/samples/pull_request-labeled-skip_news.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "action": "labeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:46:19Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 1019706345, - "node_id": "MDU6TGFiZWwxMDE5NzA2MzQ1", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/P2", - "name": "P2", - "color": "e564df", - "default": false - }, - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-reopened-skip_news.json b/tests/test_github/samples/pull_request-reopened-skip_news.json deleted file mode 100644 index 5954b9c..0000000 --- a/tests/test_github/samples/pull_request-reopened-skip_news.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "action": "reopened", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-14T00:08:22Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "ae1058788d93d840c1f38ab197fddd0a90dc7be6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [ - { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - } - ], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": null, - "rebaseable": null, - "mergeable_state": "unknown", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-14T00:07:53Z", - "pushed_at": "2018-12-14T00:07:51Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61269, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 570, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 570, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/samples/pull_request-unlabeled-skip_news.json b/tests/test_github/samples/pull_request-unlabeled-skip_news.json deleted file mode 100644 index 01a99f9..0000000 --- a/tests/test_github/samples/pull_request-unlabeled-skip_news.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "action": "unlabeled", - "number": 3690, - "pull_request": { - "url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690", - "id": 238527788, - "node_id": "MDExOlB1bGxSZXF1ZXN0MjM4NTI3Nzg4", - "html_url": "https://github.com/Microsoft/vscode-python/pull/3690", - "diff_url": "https://github.com/Microsoft/vscode-python/pull/3690.diff", - "patch_url": "https://github.com/Microsoft/vscode-python/pull/3690.patch", - "issue_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690", - "number": 3690, - "state": "open", - "locked": false, - "title": "Fix language server smoke tests", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "body": "For #3684\r\n\r\n## NOTE: Ignore changes to `.travis`, that will be reverted.\r\n\r\n\r\n- [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)\r\n- [x] Title summarizes what is changing\r\n- [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!)\r\n- [x] Unit tests & system/integration tests are added/updated\r\n- [no] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate\r\n- [no] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed)\r\n", - "created_at": "2018-12-13T20:50:37Z", - "updated_at": "2018-12-13T23:48:27Z", - "closed_at": null, - "merged_at": null, - "merge_commit_sha": "f0bdd2bb713f1ca0abb2dcd9c73454529bb978d6", - "assignee": null, - "assignees": [], - "requested_reviewers": [ - { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - }, - { - "login": "d3r3kk", - "id": 11466735, - "node_id": "MDQ6VXNlcjExNDY2NzM1", - "avatar_url": "https://avatars0.githubusercontent.com/u/11466735?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/d3r3kk", - "html_url": "https://github.com/d3r3kk", - "followers_url": "https://api.github.com/users/d3r3kk/followers", - "following_url": "https://api.github.com/users/d3r3kk/following{/other_user}", - "gists_url": "https://api.github.com/users/d3r3kk/gists{/gist_id}", - "starred_url": "https://api.github.com/users/d3r3kk/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/d3r3kk/subscriptions", - "organizations_url": "https://api.github.com/users/d3r3kk/orgs", - "repos_url": "https://api.github.com/users/d3r3kk/repos", - "events_url": "https://api.github.com/users/d3r3kk/events{/privacy}", - "received_events_url": "https://api.github.com/users/d3r3kk/received_events", - "type": "User", - "site_admin": false - } - ], - "requested_teams": [], - "labels": [], - "milestone": null, - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits", - "review_comments_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments", - "review_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e", - "head": { - "label": "DonJayamanne:fixLSSmokeTests", - "ref": "fixLSSmokeTests", - "sha": "f1013549456d13eb15dab4fffaa6cfe172b4244e", - "user": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "repo": { - "id": 49946255, - "node_id": "MDEwOlJlcG9zaXRvcnk0OTk0NjI1NQ==", - "name": "pythonVSCode", - "full_name": "DonJayamanne/pythonVSCode", - "private": false, - "owner": { - "login": "DonJayamanne", - "id": 1948812, - "node_id": "MDQ6VXNlcjE5NDg4MTI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/1948812?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/DonJayamanne", - "html_url": "https://github.com/DonJayamanne", - "followers_url": "https://api.github.com/users/DonJayamanne/followers", - "following_url": "https://api.github.com/users/DonJayamanne/following{/other_user}", - "gists_url": "https://api.github.com/users/DonJayamanne/gists{/gist_id}", - "starred_url": "https://api.github.com/users/DonJayamanne/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/DonJayamanne/subscriptions", - "organizations_url": "https://api.github.com/users/DonJayamanne/orgs", - "repos_url": "https://api.github.com/users/DonJayamanne/repos", - "events_url": "https://api.github.com/users/DonJayamanne/events{/privacy}", - "received_events_url": "https://api.github.com/users/DonJayamanne/received_events", - "type": "User", - "site_admin": false - }, - "html_url": "https://github.com/DonJayamanne/pythonVSCode", - "description": "This extension is now maintained in the Microsoft fork.", - "fork": false, - "url": "https://api.github.com/repos/DonJayamanne/pythonVSCode", - "forks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/forks", - "keys_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/teams", - "hooks_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/hooks", - "issue_events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/events{/number}", - "events_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/events", - "assignees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/assignees{/user}", - "branches_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/branches{/branch}", - "tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/tags", - "blobs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/statuses/{sha}", - "languages_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/languages", - "stargazers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/stargazers", - "contributors_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contributors", - "subscribers_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscribers", - "subscription_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/subscription", - "commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/contents/{+path}", - "compare_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/merges", - "archive_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/downloads", - "issues_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/issues{/number}", - "pulls_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/pulls{/number}", - "milestones_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/milestones{/number}", - "notifications_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/labels{/name}", - "releases_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/releases{/id}", - "deployments_url": "https://api.github.com/repos/DonJayamanne/pythonVSCode/deployments", - "created_at": "2016-01-19T10:50:01Z", - "updated_at": "2018-12-13T20:48:26Z", - "pushed_at": "2018-12-13T20:48:22Z", - "git_url": "git://github.com/DonJayamanne/pythonVSCode.git", - "ssh_url": "git@github.com:DonJayamanne/pythonVSCode.git", - "clone_url": "https://github.com/DonJayamanne/pythonVSCode.git", - "svn_url": "https://github.com/DonJayamanne/pythonVSCode", - "homepage": "https://github.com/Microsoft/vscode-python", - "size": 61670, - "stargazers_count": 1875, - "watchers_count": 1875, - "language": "TypeScript", - "has_issues": false, - "has_projects": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": true, - "forks_count": 433, - "mirror_url": null, - "archived": false, - "open_issues_count": 16, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 433, - "open_issues": 16, - "watchers": 1875, - "default_branch": "master" - } - }, - "base": { - "label": "Microsoft:master", - "ref": "master", - "sha": "7ea52079acd5069a7d5d155ddbf358daa15b53c9", - "user": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "repo": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - } - }, - "_links": { - "self": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690" - }, - "html": { - "href": "https://github.com/Microsoft/vscode-python/pull/3690" - }, - "issue": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690" - }, - "comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/issues/3690/comments" - }, - "review_comments": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/comments" - }, - "review_comment": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/comments{/number}" - }, - "commits": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/pulls/3690/commits" - }, - "statuses": { - "href": "https://api.github.com/repos/Microsoft/vscode-python/statuses/f1013549456d13eb15dab4fffaa6cfe172b4244e" - } - }, - "author_association": "NONE", - "merged": false, - "mergeable": true, - "rebaseable": true, - "mergeable_state": "unstable", - "merged_by": null, - "comments": 0, - "review_comments": 0, - "maintainer_can_modify": true, - "commits": 3, - "additions": 146, - "deletions": 113, - "changed_files": 7 - }, - "label": { - "id": 919755726, - "node_id": "MDU6TGFiZWw5MTk3NTU3MjY=", - "url": "https://api.github.com/repos/Microsoft/vscode-python/labels/skip%20news", - "name": "skip news", - "color": "000000", - "default": false - }, - "repository": { - "id": 106462765, - "node_id": "MDEwOlJlcG9zaXRvcnkxMDY0NjI3NjU=", - "name": "vscode-python", - "full_name": "Microsoft/vscode-python", - "private": false, - "owner": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/Microsoft", - "html_url": "https://github.com/Microsoft", - "followers_url": "https://api.github.com/users/Microsoft/followers", - "following_url": "https://api.github.com/users/Microsoft/following{/other_user}", - "gists_url": "https://api.github.com/users/Microsoft/gists{/gist_id}", - "starred_url": "https://api.github.com/users/Microsoft/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/Microsoft/subscriptions", - "organizations_url": "https://api.github.com/users/Microsoft/orgs", - "repos_url": "https://api.github.com/users/Microsoft/repos", - "events_url": "https://api.github.com/users/Microsoft/events{/privacy}", - "received_events_url": "https://api.github.com/users/Microsoft/received_events", - "type": "Organization", - "site_admin": false - }, - "html_url": "https://github.com/Microsoft/vscode-python", - "description": "Python extension for Visual Studio Code", - "fork": true, - "url": "https://api.github.com/repos/Microsoft/vscode-python", - "forks_url": "https://api.github.com/repos/Microsoft/vscode-python/forks", - "keys_url": "https://api.github.com/repos/Microsoft/vscode-python/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/Microsoft/vscode-python/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/Microsoft/vscode-python/teams", - "hooks_url": "https://api.github.com/repos/Microsoft/vscode-python/hooks", - "issue_events_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/events{/number}", - "events_url": "https://api.github.com/repos/Microsoft/vscode-python/events", - "assignees_url": "https://api.github.com/repos/Microsoft/vscode-python/assignees{/user}", - "branches_url": "https://api.github.com/repos/Microsoft/vscode-python/branches{/branch}", - "tags_url": "https://api.github.com/repos/Microsoft/vscode-python/tags", - "blobs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/Microsoft/vscode-python/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/Microsoft/vscode-python/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/Microsoft/vscode-python/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/Microsoft/vscode-python/statuses/{sha}", - "languages_url": "https://api.github.com/repos/Microsoft/vscode-python/languages", - "stargazers_url": "https://api.github.com/repos/Microsoft/vscode-python/stargazers", - "contributors_url": "https://api.github.com/repos/Microsoft/vscode-python/contributors", - "subscribers_url": "https://api.github.com/repos/Microsoft/vscode-python/subscribers", - "subscription_url": "https://api.github.com/repos/Microsoft/vscode-python/subscription", - "commits_url": "https://api.github.com/repos/Microsoft/vscode-python/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/Microsoft/vscode-python/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/Microsoft/vscode-python/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/Microsoft/vscode-python/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/Microsoft/vscode-python/contents/{+path}", - "compare_url": "https://api.github.com/repos/Microsoft/vscode-python/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/Microsoft/vscode-python/merges", - "archive_url": "https://api.github.com/repos/Microsoft/vscode-python/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/Microsoft/vscode-python/downloads", - "issues_url": "https://api.github.com/repos/Microsoft/vscode-python/issues{/number}", - "pulls_url": "https://api.github.com/repos/Microsoft/vscode-python/pulls{/number}", - "milestones_url": "https://api.github.com/repos/Microsoft/vscode-python/milestones{/number}", - "notifications_url": "https://api.github.com/repos/Microsoft/vscode-python/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/Microsoft/vscode-python/labels{/name}", - "releases_url": "https://api.github.com/repos/Microsoft/vscode-python/releases{/id}", - "deployments_url": "https://api.github.com/repos/Microsoft/vscode-python/deployments", - "created_at": "2017-10-10T19:37:29Z", - "updated_at": "2018-12-13T23:10:49Z", - "pushed_at": "2018-12-13T23:10:47Z", - "git_url": "git://github.com/Microsoft/vscode-python.git", - "ssh_url": "git@github.com:Microsoft/vscode-python.git", - "clone_url": "https://github.com/Microsoft/vscode-python.git", - "svn_url": "https://github.com/Microsoft/vscode-python", - "homepage": "https://marketplace.visualstudio.com/items?itemName=ms-python.python", - "size": 61268, - "stargazers_count": 1017, - "watchers_count": 1017, - "language": "TypeScript", - "has_issues": true, - "has_projects": false, - "has_downloads": true, - "has_wiki": false, - "has_pages": false, - "forks_count": 204, - "mirror_url": null, - "archived": false, - "open_issues_count": 569, - "license": { - "key": "mit", - "name": "MIT License", - "spdx_id": "MIT", - "url": "https://api.github.com/licenses/mit", - "node_id": "MDc6TGljZW5zZTEz" - }, - "forks": 204, - "open_issues": 569, - "watchers": 1017, - "default_branch": "master" - }, - "organization": { - "login": "Microsoft", - "id": 6154722, - "node_id": "MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=", - "url": "https://api.github.com/orgs/Microsoft", - "repos_url": "https://api.github.com/orgs/Microsoft/repos", - "events_url": "https://api.github.com/orgs/Microsoft/events", - "hooks_url": "https://api.github.com/orgs/Microsoft/hooks", - "issues_url": "https://api.github.com/orgs/Microsoft/issues", - "members_url": "https://api.github.com/orgs/Microsoft/members{/member}", - "public_members_url": "https://api.github.com/orgs/Microsoft/public_members{/member}", - "avatar_url": "https://avatars2.githubusercontent.com/u/6154722?v=4", - "description": "Open source, from Microsoft with love" - }, - "sender": { - "login": "brettcannon", - "id": 54418, - "node_id": "MDQ6VXNlcjU0NDE4", - "avatar_url": "https://avatars0.githubusercontent.com/u/54418?v=4", - "gravatar_id": "", - "url": "https://api.github.com/users/brettcannon", - "html_url": "https://github.com/brettcannon", - "followers_url": "https://api.github.com/users/brettcannon/followers", - "following_url": "https://api.github.com/users/brettcannon/following{/other_user}", - "gists_url": "https://api.github.com/users/brettcannon/gists{/gist_id}", - "starred_url": "https://api.github.com/users/brettcannon/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/brettcannon/subscriptions", - "organizations_url": "https://api.github.com/users/brettcannon/orgs", - "repos_url": "https://api.github.com/users/brettcannon/repos", - "events_url": "https://api.github.com/users/brettcannon/events{/privacy}", - "received_events_url": "https://api.github.com/users/brettcannon/received_events", - "type": "User", - "site_admin": false - } -} diff --git a/tests/test_github/test_classify.py b/tests/test_github/test_classify.py deleted file mode 100644 index 9d98f05..0000000 --- a/tests/test_github/test_classify.py +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import http -import json - -import gidgethub -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import classify, labels - - -def read_sample_data(filename): - return json.loads(importlib_resources.read_text(samples, filename)) - - -class FakeGH: - def __init__(self): - self.post_ = [] - self.delete_ = [] - self.getiter_request = [] - self.getiter_response = None - - async def getiter(self, url, url_vars={}): - self.getiter_request.append(gidgethub.sansio.format_url(url, url_vars)) - for x in self.getiter_response: - yield x - - async def post(self, url, url_vars={}, *, data): - post_url = gidgethub.sansio.format_url(url, url_vars) - self.post_.append((post_url, data)) - - async def delete(self, url, url_vars={}): - delete_url = gidgethub.sansio.format_url(url, url_vars) - self.delete_.append(delete_url) - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - [ - "issues-opened.json", - "issues-reopened-no_labels.json", - "issues-opened-labels_but_no_status.json", - ], -) -async def test_issue_with_no_labels(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = sample_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert ( - action[0] - == f"https://api.github.com/repos/Microsoft/vscode-python/issues/{sample_data['issue']['number']}/labels" - ) - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -@pytest.mark.parametrize( - "data_filename", - ["issues-opened-data_science.json", "issues-opened_with_labels.json"], -) -async def test_new_issue_with_label(data_filename): - sample_data = read_sample_data(data_filename) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened_with_labels.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_data_science_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-data_science.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert not gh.post_ - - -@pytest.mark.asyncio -async def test_new_issue_gains_no_status_label_while_processing(): - webhook_data = read_sample_data("issues-opened.json") - eventual_data = read_sample_data("issues-opened-labels_but_no_status.json") - event = gidgethub.sansio.Event(webhook_data, event="issues", delivery_id="12345") - gh = FakeGH() - gh.getiter_response = eventual_data["issue"]["labels"] - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - action = gh.post_[0] - assert action[1] == {"labels": [labels.Status.classify.value]} - - -@pytest.mark.asyncio -async def test_adding_classify(): - sample_data = read_sample_data("issues-labeled-classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_not_adding_classify(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_removing_classify_label_for_data_science(): - sample_data = read_sample_data( - "issues-labeled-has_classify_adding_data_science.json" - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.delete_) == 1 - assert ( - gh.delete_[0] - == "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels/classify" - ) - - -@pytest.mark.asyncio -async def test_keeping_classify_label(): - sample_data = read_sample_data("issues-labeled-has_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_missing_classify_label(): - # Can happen if issue is updated since webhook triggered. - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest( - http.HTTPStatus.BAD_REQUEST, "Label does not exist" - ) - - gh = FakeGHDeleteException() - - await classify.router.dispatch(event, gh) - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_removing_classify_label_error(): - sample_data = read_sample_data("issues-labeled-has_classify_adding_triage.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - - class FakeGHDeleteException(FakeGH): - async def delete(self, url, url_vars={}): - raise gidgethub.BadRequest(http.HTTPStatus.BAD_REQUEST, "oops") - - gh = FakeGHDeleteException() - - with pytest.raises(gidgethub.BadRequest): - await classify.router.dispatch(event, gh) - - -@pytest.mark.asyncio -async def test_adding_classify_label_again(): - sample_data = read_sample_data("issues-unlabeled-no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_removing_label_no_status_left(): - sample_data = read_sample_data("issues-unlabeled-no_status.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert len(gh.post_) == 1 - assert gh.post_[0] == ( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3327/labels", - {"labels": [labels.Status.classify.value]}, - ) - - -@pytest.mark.asyncio -async def test_no_adding_label_on_closed_issue(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_no_adding_label_for_data_science_on_label_removal(): - sample_data = read_sample_data("issues-unlabeled-closed_with_no_labels.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_labeling_closed_issue(): - sample_data = read_sample_data("issues-labeled-classify_on_closed.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ - - -@pytest.mark.asyncio -async def test_issue_missing_classify_and_labeled_something_else(): - # An issue shouldn't end up in this situation. - sample_data = read_sample_data("issues-labeled-no_classify.json") - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="1") - gh = FakeGH() - - await classify.router.dispatch(event, gh) - assert not gh.post_ - assert not gh.delete_ diff --git a/tests/test_github/test_closed.py b/tests/test_github/test_closed.py deleted file mode 100644 index 8fe7814..0000000 --- a/tests/test_github/test_closed.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. - -import json - -import gidgethub.sansio -import importlib_resources -import pytest - -from . import samples -from __app__.github import closed - - -class FakeGH: - def __init__(self): - self.called = [] - - async def delete(self, url, url_vars): - url = gidgethub.sansio.format_url(url, url_vars) - self.called.append(url) - - -@pytest.mark.asyncio -async def test_status_label_removal(): - sample_data = json.loads( - importlib_resources.read_text(samples, "issues-closed.json") - ) - event = gidgethub.sansio.Event(sample_data, event="issues", delivery_id="12345") - gh = FakeGH() - - await closed.router.dispatch(event, gh) - assert len(gh.called) == 1 - assert gh.called[0] == gidgethub.sansio.format_url( - "https://api.github.com/repos/Microsoft/vscode-python/issues/3453/labels{/name}", - {"name": "needs spec"}, - ) diff --git a/tests/test_github/test_main.py b/tests/test_github/test_main.py deleted file mode 100644 index 695c8ce..0000000 --- a/tests/test_github/test_main.py +++ /dev/null @@ -1,93 +0,0 @@ -import logging -from unittest import mock - -import aiohttp -import asynctest -import azure.functions -import gidgethub.aiohttp -import gidgethub.routing -import pytest - -from __app__ import github as github_main -from __app__.ghutils import server - - -@pytest.mark.asyncio -async def test_serve_call(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - - response = await github_main.main(request) - - assert mocked_serve.called - assert mocked_serve.call_count == 1 - args, kwargs = mocked_serve.call_args - given_gh, given_router, given_headers, given_body = args - assert isinstance(given_gh, gidgethub.aiohttp.GitHubAPI) - assert isinstance(github_main.CLIENT_SESSION, aiohttp.ClientSession) - assert given_gh._session is github_main.CLIENT_SESSION - assert given_gh.requester == "Microsoft/pvscbot" - assert given_gh.oauth_token == auth - assert given_router is github_main.router - assert given_headers == headers - assert given_body == body - given_secret = kwargs["secret"] - given_logger = kwargs["logger"] - assert given_secret == secret - assert given_logger is logging - assert response.status_code == 200 - - -@pytest.mark.asyncio -async def test_preexisting_client_session(monkeypatch): - body = '{"action": "opened"}'.encode("UTF-8") - secret = "123456" - auth = "GitHub authorization" - headers = { - "content-type": "application/json", - "x-github-event": "pull_request", - "x-github-delivery": "72d3162e-cc78-11e3-81ab-4c9367dc0958", - "x-hub-signature": "sha1=c28e33b2e56e548956c446e890929a6cbec3ac89", - } - - request = azure.functions.HttpRequest( - method="POST", url="...", headers=headers, body=body - ) - - monkeypatch.setenv("GH_AUTH", auth) - monkeypatch.setenv("GH_SECRET", secret) - mocked_serve = asynctest.create_autospec(server.serve) - monkeypatch.setattr(server, "serve", mocked_serve) - client = aiohttp.ClientSession() - monkeypatch.setattr(github_main, "CLIENT_SESSION", client) - - await github_main.main(request) - - assert github_main.CLIENT_SESSION is client - - -@pytest.mark.asyncio -async def test_exception(monkeypatch): - # Not monkeypatching anything critical to main() should trigger an exception. - logging_mock = mock.MagicMock() - monkeypatch.setattr(logging, "exception", logging_mock) - response = await github_main.main(None) - - assert response.status_code == 500 - assert logging_mock.call_count == 1 From 8c4f1cf653d161b03a059aaa1bf4af40dacff4c0 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 6 Oct 2024 00:04:40 +0300 Subject: [PATCH 57/67] --- README.md | 66 +++++++++++++++++++++++++++++++---------------------- SECURITY.md | 54 ++++++++++++++++++++++++++++++------------- 2 files changed, 77 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 566153a..701a01d 100644 --- a/README.md +++ b/README.md @@ -3,21 +3,23 @@ # Purpose This bot exists to automate the development process/workflow for -https://github.com/microsoft/vscode-python. It also acts as a simple demo of -a GitHub bot running on Azure. +https://github.com/microsoft/vscode-python. It also acts as a simple demo of a +GitHub bot running on Azure. This bot is what is known as an OAuth app and is not a GitHub app. The [differences](https://developer.github.com/apps/differences-between-apps/) come -down to simplicity in authentication and how widely can the bot be deployed. Since -this bot is only deployed for a single repository and the original author was -intimately familiar with OAuth apps that was the route taken. +down to simplicity in authentication and how widely can the bot be deployed. +Since this bot is only deployed for a single repository and the original author +was intimately familiar with OAuth apps that was the route taken. This bot also predates [GitHub Actions](https://developer.github.com/actions/) -being released. As such some things this bot does may be easier to do as an action. +being released. As such some things this bot does may be easier to do as an +action. Currently the bot will do the following things for you: -1. Add/remove the `classify` label based on whether any other status label is set. +1. Add/remove the `classify` label based on whether any other status label is + set. 1. When an issue is closed, remove any status-related labels, e.g. `needs PR` (with the idea that if an issue is re-opened then it needs to be re-evaluated as to why the issue is still open). @@ -30,19 +32,24 @@ Currently the bot will do the following things for you: You must set two environment variables for the bot to function: -1. `GH_SECRET`: [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). -1. `GH_AUTH`: [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) for the bot to make changes in your repo. +1. `GH_SECRET`: + [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). +1. `GH_AUTH`: + [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) + for the bot to make changes in your repo. -The [shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) +The +[shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) between GitHub and your bot is used to verify that the webhook payload actually -originated from GitHub for your repository and isn't malicious. This is important -as a malicious user could send fake webhook payloads to your bot and cause it to -make changes on the malicious user's behalf. +originated from GitHub for your repository and isn't malicious. This is +important as a malicious user could send fake webhook payloads to your bot and +cause it to make changes on the malicious user's behalf. -The [personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) +The +[personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) is to empower your bot to make changes to your repo on your behalf. You can use -a token from your personal GitHub account or create a fake bot account. Make sure -the token has the following scopes/permissions: +a token from your personal GitHub account or create a fake bot account. Make +sure the token has the following scopes/permissions: 1.`repo:public_repo` (if your repo is public; adjust accordingly for your needs) @@ -62,14 +69,19 @@ running on Python 3.7. # Contributing -This project welcomes contributions and suggestions. Most contributions require you to agree to a -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us -the rights to use your contribution. For details, visit https://cla.microsoft.com. - -When you submit a pull request, a CLA-bot will automatically determine whether you need to provide -a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions -provided by the bot. You will only need to do this once across all repos using our CLA. - -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. For +details, visit https://cla.microsoft.com. + +When you submit a pull request, a CLA-bot will automatically determine whether +you need to provide a CLA and decorate the PR appropriately (e.g., label, +comment). Simply follow the instructions provided by the bot. You will only need +to do this once across all repos using our CLA. + +This project has adopted the +[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information see the +[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or +contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any +additional questions or comments. diff --git a/SECURITY.md b/SECURITY.md index 8a5d128..4fe08fa 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,33 +2,54 @@ ## Security -Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/). - -If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)) of a security vulnerability, please report it to us as described below. +Microsoft takes the security of our software products and services seriously, +which includes all source code repositories managed through our GitHub +organizations, which include [Microsoft](https://github.com/Microsoft), +[Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), +[AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and +[our GitHub organizations](https://opensource.microsoft.com/). + +If you believe you have found a security vulnerability in any Microsoft-owned +repository that meets Microsoft's +[Microsoft's definition of a security vulnerability]() +of a security vulnerability, please report it to us as described below. ## Reporting Security Issues **Please do not report security vulnerabilities through public GitHub issues.** -Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). +Instead, please report them to the Microsoft Security Response Center (MSRC) at +[https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). -If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). +If you prefer to submit without logging in, send email to +[secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your +message with our PGP key; please download it from the the +[Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). -You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). +You should receive a response within 24 hours. If for some reason you do not, +please follow up via email to ensure we received your original message. +Additional information can be found at +[microsoft.com/msrc](https://www.microsoft.com/msrc). -Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: +Please include the requested information listed below (as much as you can +provide) to help us better understand the nature and scope of the possible +issue: - * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) - * Full paths of source file(s) related to the manifestation of the issue - * The location of the affected source code (tag/branch/commit or direct URL) - * Any special configuration required to reproduce the issue - * Step-by-step instructions to reproduce the issue - * Proof-of-concept or exploit code (if possible) - * Impact of the issue, including how an attacker might exploit the issue +- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, + etc.) +- Full paths of source file(s) related to the manifestation of the issue +- The location of the affected source code (tag/branch/commit or direct URL) +- Any special configuration required to reproduce the issue +- Step-by-step instructions to reproduce the issue +- Proof-of-concept or exploit code (if possible) +- Impact of the issue, including how an attacker might exploit the issue This information will help us triage your report more quickly. -If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs. +If you are reporting for a bug bounty, more complete reports can contribute to a +higher bounty award. Please visit our +[Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more +details about our active programs. ## Preferred Languages @@ -36,6 +57,7 @@ We prefer all communications to be in English. ## Policy -Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). +Microsoft follows the principle of +[Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). From b03a4432b37e1de79dae64136ede66a0005323c7 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 6 Oct 2024 12:37:47 +0300 Subject: [PATCH 58/67] --- README.md | 87 ------------------------------------------------------- 1 file changed, 87 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 701a01d..0000000 --- a/README.md +++ /dev/null @@ -1,87 +0,0 @@ -[![CI](https://github.com/microsoft/pvscbot/workflows/CI/badge.svg?branch=master&event=push "CI status badge")](https://github.com/microsoft/pvscbot/actions?query=branch%3Amaster+event%3Apush+workflow%3ACI) - -# Purpose - -This bot exists to automate the development process/workflow for -https://github.com/microsoft/vscode-python. It also acts as a simple demo of a -GitHub bot running on Azure. - -This bot is what is known as an OAuth app and is not a GitHub app. The -[differences](https://developer.github.com/apps/differences-between-apps/) come -down to simplicity in authentication and how widely can the bot be deployed. -Since this bot is only deployed for a single repository and the original author -was intimately familiar with OAuth apps that was the route taken. - -This bot also predates [GitHub Actions](https://developer.github.com/actions/) -being released. As such some things this bot does may be easier to do as an -action. - -Currently the bot will do the following things for you: - -1. Add/remove the `classify` label based on whether any other status label is - set. -1. When an issue is closed, remove any status-related labels, e.g. `needs PR` - (with the idea that if an issue is re-opened then it needs to be re-evaluated - as to why the issue is still open). - -# Deployment - -## Generically - -### On the deployment/hosting side - -You must set two environment variables for the bot to function: - -1. `GH_SECRET`: - [secret between GitHub and your bot](https://developer.github.com/webhooks/securing/#setting-your-secret-token). -1. `GH_AUTH`: - [Auth token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) - for the bot to make changes in your repo. - -The -[shared secret](https://developer.github.com/webhooks/securing/#setting-your-secret-token) -between GitHub and your bot is used to verify that the webhook payload actually -originated from GitHub for your repository and isn't malicious. This is -important as a malicious user could send fake webhook payloads to your bot and -cause it to make changes on the malicious user's behalf. - -The -[personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) -is to empower your bot to make changes to your repo on your behalf. You can use -a token from your personal GitHub account or create a fake bot account. Make -sure the token has the following scopes/permissions: - -1.`repo:public_repo` (if your repo is public; adjust accordingly for your needs) - -### On the GitHub side - -When [creating the webhook](https://developer.github.com/webhooks/creating/) you -need to specify what events to send to your endpoint. This bot supports the -following events: - -1. `Issues` - -## Azure - -The bot is currently written to support -[Azure Functions](https://docs.microsoft.com/en-us/azure/azure-functions/) -running on Python 3.7. - -# Contributing - -This project welcomes contributions and suggestions. Most contributions require -you to agree to a Contributor License Agreement (CLA) declaring that you have -the right to, and actually do, grant us the rights to use your contribution. For -details, visit https://cla.microsoft.com. - -When you submit a pull request, a CLA-bot will automatically determine whether -you need to provide a CLA and decorate the PR appropriately (e.g., label, -comment). Simply follow the instructions provided by the bot. You will only need -to do this once across all repos using our CLA. - -This project has adopted the -[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the -[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. From 7540c70135d38d582571e83d1b6b8b86192cafa8 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 7 Oct 2024 20:22:35 +0300 Subject: [PATCH 59/67] --- LICENSE | 157 ++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 136 insertions(+), 21 deletions(-) diff --git a/LICENSE b/LICENSE index 2107107..054f355 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,136 @@ - MIT License - - Copyright (c) Microsoft Corporation. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator and +subsequent owner(s) (each and all, an "owner") of an original work of authorship +and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for the +purpose of contributing to a commons of creative, cultural and scientific works +("Commons") that the public can reliably and without fear of later claims of +infringement build upon, modify, incorporate in other works, reuse and +redistribute as freely as possible in any form whatsoever and for any purposes, +including without limitation commercial purposes. These owners may contribute to +the Commons to promote the ideal of a free culture and the further production of +creative, cultural and scientific works, or to gain reputation or greater +distribution for their Work in part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any expectation of +additional consideration or compensation, the person associating CC0 with a Work +(the "Affirmer"), to the extent that he or she is an owner of Copyright and +Related Rights in the Work, voluntarily elects to apply CC0 to the Work and +publicly distribute the Work under its terms, with knowledge of his or her +Copyright and Related Rights in the Work and the meaning and intended legal +effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be + protected by copyright and related or neighboring rights ("Copyright and + Related Rights"). Copyright and Related Rights include, but are not limited + to, the following: + +i. the right to reproduce, adapt, distribute, perform, display, communicate, and +translate a Work; ii. moral rights retained by the original author(s) and/or +performer(s); iii. publicity and privacy rights pertaining to a person's image +or likeness depicted in a Work; iv. rights protecting against unfair competition +in regards to a Work, subject to the limitations in paragraph 4(a), below; v. +rights protecting the extraction, dissemination, use and reuse of data in a +Work; vi. database rights (such as those arising under Directive 96/9/EC of the +European Parliament and of the Council of 11 March 1996 on the legal protection +of databases, and under any national implementation thereof, including any +amended or successor version of such directive); and vii. other similar, +equivalent or corresponding rights throughout the world based on applicable law +or treaty, and any national implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention of, + applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and + unconditionally waives, abandons, and surrenders all of Affirmer's Copyright + and Related Rights and associated claims and causes of action, whether now + known or unknown (including existing as well as future claims and causes of + action), in the Work (i) in all territories worldwide, (ii) for the maximum + duration provided by applicable law or treaty (including future time + extensions), (iii) in any current or future medium and for any number of + copies, and (iv) for any purpose whatsoever, including without limitation + commercial, advertising or promotional purposes (the "Waiver"). Affirmer + makes the Waiver for the benefit of each member of the public at large and to + the detriment of Affirmer's heirs and successors, fully intending that such + Waiver shall not be subject to revocation, rescission, cancellation, + termination, or any other legal or equitable action to disrupt the quiet + enjoyment of the Work by the public as contemplated by Affirmer's express . + +3. Public License Fallback. Should any part of the Waiver for any reason be + judged legally invalid or ineffective under applicable law, then the Waiver + shall be preserved to the maximum extent permitted taking into account + Affirmer's express . In addition, to the extent the Waiver is so judged + Affirmer hereby grants to each affected person a royalty-free, non + transferable, non sublicensable, non exclusive, irrevocable and unconditional + license to exercise Affirmer's Copyright and Related Rights in the Work (i) + in all territories worldwide, (ii) for the maximum duration provided by + applicable law or treaty (including future time extensions), (iii) in any + current or future medium and for any number of copies, and (iv) for any + purpose whatsoever, including without limitation commercial, advertising or + promotional purposes (the "License"). The License shall be deemed effective + as of the date CC0 was applied by Affirmer to the Work. Should any part of + the License for any reason be judged legally invalid or ineffective under + applicable law, such partial invalidity or ineffectiveness shall not + invalidate the remainder of the License, and in such case Affirmer hereby + affirms that he or she will not (i) exercise any of his or her remaining + Copyright and Related Rights in the Work or (ii) assert any associated claims + and causes of action with respect to the Work, in either case contrary to + +4. Limitations and Disclaimers. + +a. No trademark or patent rights held by Affirmer are waived, abandoned, +surrendered, licensed or otherwise affected by this document. b. Affirmer offers +the Work as-is and makes no representations or warranties of any kind concerning +the Work, express, implied, statutory or otherwise, including without limitation +warranties of title, merchantability, fitness for a particular purpose, non +infringement, or the absence of latent or other defects, accuracy, or the +present or absence of errors, whether or not discoverable, all to the greatest +extent permissible under applicable law. c. Affirmer disclaims responsibility +for clearing rights of other persons that may apply to the Work or any use +thereof, including without limitation any person's Copyright and Related Rights +in the Work. Further, Affirmer disclaims responsibility for obtaining any +necessary consents, permissions or other rights required for any use of the +Work. d. Affirmer understands and acknowledges that Creative Commons is not a +party to this document and has no duty or obligation with respect to this CC0 or +use of the Work. + +--- + +Note: The above license applies only to the modifications made by PlayForm to +the original work. The original work is licensed under the following licenses +and is subject to its terms and conditions: + +MIT License + +Copyright (c) Microsoft Corporation. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE From a4672af87638495b9fc18166ccb8f514498be5cf Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 7 Oct 2024 20:32:27 +0300 Subject: [PATCH 60/67] --- SECURITY.md | 63 ----------------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index 4fe08fa..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,63 +0,0 @@ - - -## Security - -Microsoft takes the security of our software products and services seriously, -which includes all source code repositories managed through our GitHub -organizations, which include [Microsoft](https://github.com/Microsoft), -[Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), -[AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and -[our GitHub organizations](https://opensource.microsoft.com/). - -If you believe you have found a security vulnerability in any Microsoft-owned -repository that meets Microsoft's -[Microsoft's definition of a security vulnerability]() -of a security vulnerability, please report it to us as described below. - -## Reporting Security Issues - -**Please do not report security vulnerabilities through public GitHub issues.** - -Instead, please report them to the Microsoft Security Response Center (MSRC) at -[https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report). - -If you prefer to submit without logging in, send email to -[secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your -message with our PGP key; please download it from the the -[Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc). - -You should receive a response within 24 hours. If for some reason you do not, -please follow up via email to ensure we received your original message. -Additional information can be found at -[microsoft.com/msrc](https://www.microsoft.com/msrc). - -Please include the requested information listed below (as much as you can -provide) to help us better understand the nature and scope of the possible -issue: - -- Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, - etc.) -- Full paths of source file(s) related to the manifestation of the issue -- The location of the affected source code (tag/branch/commit or direct URL) -- Any special configuration required to reproduce the issue -- Step-by-step instructions to reproduce the issue -- Proof-of-concept or exploit code (if possible) -- Impact of the issue, including how an attacker might exploit the issue - -This information will help us triage your report more quickly. - -If you are reporting for a bug bounty, more complete reports can contribute to a -higher bounty award. Please visit our -[Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more -details about our active programs. - -## Preferred Languages - -We prefer all communications to be in English. - -## Policy - -Microsoft follows the principle of -[Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd). - - From c6ac5967f27017ce83d6acfbfa0797a1746f9101 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Mon, 7 Oct 2024 22:43:14 +0300 Subject: [PATCH 61/67] --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 054f355..c7cb0ea 100644 --- a/LICENSE +++ b/LICENSE @@ -112,7 +112,7 @@ use of the Work. Note: The above license applies only to the modifications made by PlayForm to the original work. The original work is licensed under the following licenses -and is subject to its terms and conditions: +and is subject to their terms and conditions: MIT License From 4081cc9ec52899d0a1c4b97d2a3c7c860af82bb8 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 8 Oct 2024 18:56:04 +0300 Subject: [PATCH 62/67] --- .github/dependabot.yml | 14 ++++++++ .github/workflows/Dependabot.yml | 45 ++++++++++++++++++++++++ .github/workflows/GitHub.yml | 59 ++++++++++++++++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/Dependabot.yml create mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4b4fcd7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +enable-beta-ecosystems: true + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/__app__" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml new file mode 100644 index 0000000..387fece --- /dev/null +++ b/.github/workflows/Dependabot.yml @@ -0,0 +1,45 @@ +name: Dependabot + +concurrency: + group: Dependabot-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + security-events: write + contents: write + pull-requests: write + +on: + workflow_dispatch: + pull_request: + +jobs: + Approve: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + Merge: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml new file mode 100644 index 0000000..161ef34 --- /dev/null +++ b/.github/workflows/GitHub.yml @@ -0,0 +1,59 @@ +name: GitHub + +concurrency: + group: GitHub-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + issues: write + pull-requests: write + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + Assign: + runs-on: ubuntu-latest + + env: + ADBLOCK: true + ASTRO_TELEMETRY_DISABLED: 1 + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 + AZURE_CORE_COLLECT_TELEMETRY: 0 + CHOOSENIM_NO_ANALYTICS: 1 + DIEZ_DO_NOT_TRACK: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 + DO_NOT_TRACK: 1 + ET_NO_TELEMETRY: 1 + GATSBY_TELEMETRY_DISABLED: 1 + GATSBY_TELEMETRY_OPTOUT: 1 + GATSBY_TELEMETRY_OPT_OUT: 1 + GRIT_TELEMETRY_DISABLED: 1 + HASURA_GRAPHQL_ENABLE_TELEMETRY: false + HINT_TELEMETRY: off + HOMEBREW_NO_ANALYTICS: 1 + INFLUXD_REPORTING_DISABLED: true + ITERATIVE_DO_NOT_TRACK: 1 + NEXT_TELEMETRY_DEBUG: 1 + NEXT_TELEMETRY_DISABLED: 1 + NG_CLI_ANALYTICS: false + NUXT_TELEMETRY_DISABLED: 1 + PIN_DO_NOT_TRACK: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + SAM_CLI_TELEMETRY: 0 + STNOUPGRADE: 1 + STRIPE_CLI_TELEMETRY_OPTOUT: 1 + TELEMETRY_DISABLED: 1 + TERRAFORM_TELEMETRY: 0 + VCPKG_DISABLE_METRICS: 1 + + steps: + - uses: pozil/auto-assign-issue@v2.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: NikolaRHristov + numOfAssignee: 1 From d01c72546ab95eb8eda1f47945059adbbf8f34c0 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 9 Oct 2024 15:20:09 +0300 Subject: [PATCH 63/67] --- .github/dependabot.yml | 14 -------- .github/workflows/Dependabot.yml | 45 ------------------------ .github/workflows/GitHub.yml | 59 -------------------------------- 3 files changed, 118 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/Dependabot.yml delete mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4b4fcd7..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -enable-beta-ecosystems: true - -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "pip" - directory: "/__app__" - schedule: - interval: "daily" - versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml deleted file mode 100644 index 387fece..0000000 --- a/.github/workflows/Dependabot.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Dependabot - -concurrency: - group: Dependabot-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - security-events: write - contents: write - pull-requests: write - -on: - workflow_dispatch: - pull_request: - -jobs: - Approve: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - Merge: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml deleted file mode 100644 index 161ef34..0000000 --- a/.github/workflows/GitHub.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: GitHub - -concurrency: - group: GitHub-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - issues: write - pull-requests: write - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - Assign: - runs-on: ubuntu-latest - - env: - ADBLOCK: true - ASTRO_TELEMETRY_DISABLED: 1 - AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 - AZURE_CORE_COLLECT_TELEMETRY: 0 - CHOOSENIM_NO_ANALYTICS: 1 - DIEZ_DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - DO_NOT_TRACK: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPTOUT: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GRIT_TELEMETRY_DISABLED: 1 - HASURA_GRAPHQL_ENABLE_TELEMETRY: false - HINT_TELEMETRY: off - HOMEBREW_NO_ANALYTICS: 1 - INFLUXD_REPORTING_DISABLED: true - ITERATIVE_DO_NOT_TRACK: 1 - NEXT_TELEMETRY_DEBUG: 1 - NEXT_TELEMETRY_DISABLED: 1 - NG_CLI_ANALYTICS: false - NUXT_TELEMETRY_DISABLED: 1 - PIN_DO_NOT_TRACK: 1 - POWERSHELL_TELEMETRY_OPTOUT: 1 - SAM_CLI_TELEMETRY: 0 - STNOUPGRADE: 1 - STRIPE_CLI_TELEMETRY_OPTOUT: 1 - TELEMETRY_DISABLED: 1 - TERRAFORM_TELEMETRY: 0 - VCPKG_DISABLE_METRICS: 1 - - steps: - - uses: pozil/auto-assign-issue@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: NikolaRHristov - numOfAssignee: 1 From 1864cd3e5f4121d7edbeea4f4151342a0b3545d9 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Wed, 9 Oct 2024 19:23:22 +0300 Subject: [PATCH 64/67] --- .github/dependabot.yml | 14 ++++++++ .github/workflows/Dependabot.yml | 45 ++++++++++++++++++++++++ .github/workflows/GitHub.yml | 59 ++++++++++++++++++++++++++++++++ 3 files changed, 118 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/Dependabot.yml create mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4b4fcd7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +enable-beta-ecosystems: true + +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/__app__" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml new file mode 100644 index 0000000..387fece --- /dev/null +++ b/.github/workflows/Dependabot.yml @@ -0,0 +1,45 @@ +name: Dependabot + +concurrency: + group: Dependabot-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + security-events: write + contents: write + pull-requests: write + +on: + workflow_dispatch: + pull_request: + +jobs: + Approve: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + Merge: + runs-on: ubuntu-latest + + if: ${{ github.actor == 'dependabot[bot]' }} + + steps: + - uses: dependabot/fetch-metadata@v2.2.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml new file mode 100644 index 0000000..161ef34 --- /dev/null +++ b/.github/workflows/GitHub.yml @@ -0,0 +1,59 @@ +name: GitHub + +concurrency: + group: GitHub-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + issues: write + pull-requests: write + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + Assign: + runs-on: ubuntu-latest + + env: + ADBLOCK: true + ASTRO_TELEMETRY_DISABLED: 1 + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 + AZURE_CORE_COLLECT_TELEMETRY: 0 + CHOOSENIM_NO_ANALYTICS: 1 + DIEZ_DO_NOT_TRACK: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 + DO_NOT_TRACK: 1 + ET_NO_TELEMETRY: 1 + GATSBY_TELEMETRY_DISABLED: 1 + GATSBY_TELEMETRY_OPTOUT: 1 + GATSBY_TELEMETRY_OPT_OUT: 1 + GRIT_TELEMETRY_DISABLED: 1 + HASURA_GRAPHQL_ENABLE_TELEMETRY: false + HINT_TELEMETRY: off + HOMEBREW_NO_ANALYTICS: 1 + INFLUXD_REPORTING_DISABLED: true + ITERATIVE_DO_NOT_TRACK: 1 + NEXT_TELEMETRY_DEBUG: 1 + NEXT_TELEMETRY_DISABLED: 1 + NG_CLI_ANALYTICS: false + NUXT_TELEMETRY_DISABLED: 1 + PIN_DO_NOT_TRACK: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + SAM_CLI_TELEMETRY: 0 + STNOUPGRADE: 1 + STRIPE_CLI_TELEMETRY_OPTOUT: 1 + TELEMETRY_DISABLED: 1 + TERRAFORM_TELEMETRY: 0 + VCPKG_DISABLE_METRICS: 1 + + steps: + - uses: pozil/auto-assign-issue@v2.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + assignees: NikolaRHristov + numOfAssignee: 1 From bd2dd63f14128962929449ebf13cce2a7e82e0b1 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 10 Oct 2024 00:16:44 +0300 Subject: [PATCH 65/67] --- __app__/github/function.json | 32 +++++++++++++++----------------- __app__/host.json | 10 +++++----- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/__app__/github/function.json b/__app__/github/function.json index 9dc8d3f..d506eb3 100644 --- a/__app__/github/function.json +++ b/__app__/github/function.json @@ -1,19 +1,17 @@ { - "scriptFile": "__init__.py", - "bindings": [ - { - "authLevel": "function", - "type": "httpTrigger", - "direction": "in", - "name": "req", - "methods": [ - "post" - ] - }, - { - "type": "http", - "direction": "out", - "name": "$return" - } - ] + "scriptFile": "__init__.py", + "bindings": [ + { + "authLevel": "function", + "type": "httpTrigger", + "direction": "in", + "name": "req", + "methods": ["post"] + }, + { + "type": "http", + "direction": "out", + "name": "$return" + } + ] } diff --git a/__app__/host.json b/__app__/host.json index f4458ea..f9ec075 100644 --- a/__app__/host.json +++ b/__app__/host.json @@ -1,7 +1,7 @@ { - "version": "2.0", - "extensionBundle": { - "id": "Microsoft.Azure.Functions.ExtensionBundle", - "version": "[1.*, 2.0.0)" - } + "version": "2.0", + "extensionBundle": { + "id": "Microsoft.Azure.Functions.ExtensionBundle", + "version": "[1.*, 2.0.0)" + } } From ebd5fd26d4f137d00ce5b981ece6e8e9840b186b Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 10 Oct 2024 12:26:41 +0300 Subject: [PATCH 66/67] --- .github/dependabot.yml | 14 -------- .github/workflows/Dependabot.yml | 45 ------------------------ .github/workflows/GitHub.yml | 59 -------------------------------- 3 files changed, 118 deletions(-) delete mode 100644 .github/dependabot.yml delete mode 100644 .github/workflows/Dependabot.yml delete mode 100644 .github/workflows/GitHub.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 4b4fcd7..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -enable-beta-ecosystems: true - -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "pip" - directory: "/__app__" - schedule: - interval: "daily" - versioning-strategy: increase diff --git a/.github/workflows/Dependabot.yml b/.github/workflows/Dependabot.yml deleted file mode 100644 index 387fece..0000000 --- a/.github/workflows/Dependabot.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Dependabot - -concurrency: - group: Dependabot-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - security-events: write - contents: write - pull-requests: write - -on: - workflow_dispatch: - pull_request: - -jobs: - Approve: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - Merge: - runs-on: ubuntu-latest - - if: ${{ github.actor == 'dependabot[bot]' }} - - steps: - - uses: dependabot/fetch-metadata@v2.2.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/GitHub.yml b/.github/workflows/GitHub.yml deleted file mode 100644 index 161ef34..0000000 --- a/.github/workflows/GitHub.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: GitHub - -concurrency: - group: GitHub-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - issues: write - pull-requests: write - -on: - issues: - types: [opened] - pull_request: - types: [opened] - -jobs: - Assign: - runs-on: ubuntu-latest - - env: - ADBLOCK: true - ASTRO_TELEMETRY_DISABLED: 1 - AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 - AZURE_CORE_COLLECT_TELEMETRY: 0 - CHOOSENIM_NO_ANALYTICS: 1 - DIEZ_DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - DO_NOT_TRACK: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPTOUT: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GRIT_TELEMETRY_DISABLED: 1 - HASURA_GRAPHQL_ENABLE_TELEMETRY: false - HINT_TELEMETRY: off - HOMEBREW_NO_ANALYTICS: 1 - INFLUXD_REPORTING_DISABLED: true - ITERATIVE_DO_NOT_TRACK: 1 - NEXT_TELEMETRY_DEBUG: 1 - NEXT_TELEMETRY_DISABLED: 1 - NG_CLI_ANALYTICS: false - NUXT_TELEMETRY_DISABLED: 1 - PIN_DO_NOT_TRACK: 1 - POWERSHELL_TELEMETRY_OPTOUT: 1 - SAM_CLI_TELEMETRY: 0 - STNOUPGRADE: 1 - STRIPE_CLI_TELEMETRY_OPTOUT: 1 - TELEMETRY_DISABLED: 1 - TERRAFORM_TELEMETRY: 0 - VCPKG_DISABLE_METRICS: 1 - - steps: - - uses: pozil/auto-assign-issue@v2.0.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - assignees: NikolaRHristov - numOfAssignee: 1 From 4db8131970715a29c86a2a99e08c0f16e87f8f64 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 21:40:05 +0000 Subject: [PATCH 67/67] Bump aiohttp from 3.6.2 to 3.10.11 in /__app__ --- updated-dependencies: - dependency-name: aiohttp dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- __app__/requirements.txt | 440 ++++++++++++++++++++++++++++++++++----- 1 file changed, 388 insertions(+), 52 deletions(-) diff --git a/__app__/requirements.txt b/__app__/requirements.txt index 75b05ae..d6818c6 100644 --- a/__app__/requirements.txt +++ b/__app__/requirements.txt @@ -4,41 +4,215 @@ # # pip-compile --generate-hashes # -aiohttp==3.6.2 \ - --hash=sha256:1e984191d1ec186881ffaed4581092ba04f7c61582a177b187d3a2f07ed9719e \ - --hash=sha256:259ab809ff0727d0e834ac5e8a283dc5e3e0ecc30c4d80b3cd17a4139ce1f326 \ - --hash=sha256:2f4d1a4fdce595c947162333353d4a44952a724fba9ca3205a3df99a33d1307a \ - --hash=sha256:32e5f3b7e511aa850829fbe5aa32eb455e5534eaa4b1ce93231d00e2f76e5654 \ - --hash=sha256:344c780466b73095a72c616fac5ea9c4665add7fc129f285fbdbca3cccf4612a \ - --hash=sha256:460bd4237d2dbecc3b5ed57e122992f60188afe46e7319116da5eb8a9dfedba4 \ - --hash=sha256:4c6efd824d44ae697814a2a85604d8e992b875462c6655da161ff18fd4f29f17 \ - --hash=sha256:50aaad128e6ac62e7bf7bd1f0c0a24bc968a0c0590a726d5a955af193544bcec \ - --hash=sha256:6206a135d072f88da3e71cc501c59d5abffa9d0bb43269a6dcd28d66bfafdbdd \ - --hash=sha256:65f31b622af739a802ca6fd1a3076fd0ae523f8485c52924a89561ba10c49b48 \ - --hash=sha256:ae55bac364c405caa23a4f2d6cfecc6a0daada500274ffca4a9230e7129eac59 \ - --hash=sha256:b778ce0c909a2653741cb4b1ac7015b5c130ab9c897611df43ae6a58523cb965 -async-timeout==3.0.1 \ - --hash=sha256:0c3c816a028d47f659d6ff5c745cb2acf1f966da1fe5c19c77a70282b25f4c5f \ - --hash=sha256:4291ca197d287d274d0b6cb5d6f8f8f82d434ed288f962539ff18cc9012f9ea3 \ +aiohappyeyeballs==2.4.3 \ + --hash=sha256:75cf88a15106a5002a8eb1dab212525c00d1f4c0fa96e551c9fbe6f09a621586 \ + --hash=sha256:8a7a83727b2756f394ab2895ea0765a0a8c475e3c71e98d43d76f22b4b435572 + # via aiohttp +aiohttp==3.10.11 \ + --hash=sha256:0316e624b754dbbf8c872b62fe6dcb395ef20c70e59890dfa0de9eafccd2849d \ + --hash=sha256:099fd126bf960f96d34a760e747a629c27fb3634da5d05c7ef4d35ef4ea519fc \ + --hash=sha256:0acafb350cfb2eba70eb5d271f55e08bd4502ec35e964e18ad3e7d34d71f7261 \ + --hash=sha256:0c5580f3c51eea91559db3facd45d72e7ec970b04528b4709b1f9c2555bd6d0b \ + --hash=sha256:0f449a50cc33f0384f633894d8d3cd020e3ccef81879c6e6245c3c375c448625 \ + --hash=sha256:14cdc8c1810bbd4b4b9f142eeee23cda528ae4e57ea0923551a9af4820980e39 \ + --hash=sha256:1dc0f4ca54842173d03322793ebcf2c8cc2d34ae91cc762478e295d8e361e03f \ + --hash=sha256:1e7b825da878464a252ccff2958838f9caa82f32a8dbc334eb9b34a026e2c636 \ + --hash=sha256:20063c7acf1eec550c8eb098deb5ed9e1bb0521613b03bb93644b810986027ac \ + --hash=sha256:20b3d9e416774d41813bc02fdc0663379c01817b0874b932b81c7f777f67b217 \ + --hash=sha256:22b7c540c55909140f63ab4f54ec2c20d2635c0289cdd8006da46f3327f971b9 \ + --hash=sha256:236b28ceb79532da85d59aa9b9bf873b364e27a0acb2ceaba475dc61cffb6f3f \ + --hash=sha256:249c8ff8d26a8b41a0f12f9df804e7c685ca35a207e2410adbd3e924217b9006 \ + --hash=sha256:25fd5470922091b5a9aeeb7e75be609e16b4fba81cdeaf12981393fb240dd10e \ + --hash=sha256:29103f9099b6068bbdf44d6a3d090e0a0b2be6d3c9f16a070dd9d0d910ec08f9 \ + --hash=sha256:2b943011b45ee6bf74b22245c6faab736363678e910504dd7531a58c76c9015a \ + --hash=sha256:2c8f96e9ee19f04c4914e4e7a42a60861066d3e1abf05c726f38d9d0a466e695 \ + --hash=sha256:2dfb612dcbe70fb7cdcf3499e8d483079b89749c857a8f6e80263b021745c730 \ + --hash=sha256:2e4e18a0a2d03531edbc06c366954e40a3f8d2a88d2b936bbe78a0c75a3aab3e \ + --hash=sha256:2ea224cf7bc2d8856d6971cea73b1d50c9c51d36971faf1abc169a0d5f85a382 \ + --hash=sha256:30283f9d0ce420363c24c5c2421e71a738a2155f10adbb1a11a4d4d6d2715cfc \ + --hash=sha256:38e3c4f80196b4f6c3a85d134a534a56f52da9cb8d8e7af1b79a32eefee73a00 \ + --hash=sha256:3bf6d027d9d1d34e1c2e1645f18a6498c98d634f8e373395221121f1c258ace8 \ + --hash=sha256:459f0f32c8356e8125f45eeff0ecf2b1cb6db1551304972702f34cd9e6c44658 \ + --hash=sha256:473aebc3b871646e1940c05268d451f2543a1d209f47035b594b9d4e91ce8339 \ + --hash=sha256:489cced07a4c11488f47aab1f00d0c572506883f877af100a38f1fedaa884c3a \ + --hash=sha256:48bc1d924490f0d0b3658fe5c4b081a4d56ebb58af80a6729d4bd13ea569797a \ + --hash=sha256:4996ff1345704ffdd6d75fb06ed175938c133425af616142e7187f28dc75f14e \ + --hash=sha256:4e8d8aad9402d3aa02fdc5ca2fe68bcb9fdfe1f77b40b10410a94c7f408b664d \ + --hash=sha256:5077b1a5f40ffa3ba1f40d537d3bec4383988ee51fbba6b74aa8fb1bc466599e \ + --hash=sha256:5a5f7ab8baf13314e6b2485965cbacb94afff1e93466ac4d06a47a81c50f9cca \ + --hash=sha256:5ab2328a61fdc86424ee540d0aeb8b73bbcad7351fb7cf7a6546fc0bcffa0038 \ + --hash=sha256:5f0463bf8b0754bc744e1feb61590706823795041e63edf30118a6f0bf577461 \ + --hash=sha256:686b03196976e327412a1b094f4120778c7c4b9cff9bce8d2fdfeca386b89829 \ + --hash=sha256:6cd3f10b01f0c31481fba8d302b61603a2acb37b9d30e1d14e0f5a58b7b18a31 \ + --hash=sha256:6ce66780fa1a20e45bc753cda2a149daa6dbf1561fc1289fa0c308391c7bc0a4 \ + --hash=sha256:703938e22434d7d14ec22f9f310559331f455018389222eed132808cd8f44127 \ + --hash=sha256:72b191cdf35a518bfc7ca87d770d30941decc5aaf897ec8b484eb5cc8c7706f3 \ + --hash=sha256:7400a93d629a0608dc1d6c55f1e3d6e07f7375745aaa8bd7f085571e4d1cee97 \ + --hash=sha256:7480519f70e32bfb101d71fb9a1f330fbd291655a4c1c922232a48c458c52710 \ + --hash=sha256:74baf1a7d948b3d640badeac333af581a367ab916b37e44cf90a0334157cdfd2 \ + --hash=sha256:778cbd01f18ff78b5dd23c77eb82987ee4ba23408cbed233009fd570dda7e674 \ + --hash=sha256:7b26b1551e481012575dab8e3727b16fe7dd27eb2711d2e63ced7368756268fb \ + --hash=sha256:7ce6a51469bfaacff146e59e7fb61c9c23006495d11cc24c514a455032bcfa03 \ + --hash=sha256:80ff08556c7f59a7972b1e8919f62e9c069c33566a6d28586771711e0eea4f07 \ + --hash=sha256:82052be3e6d9e0c123499127782a01a2b224b8af8c62ab46b3f6197035ad94e9 \ + --hash=sha256:8663f7777ce775f0413324be0d96d9730959b2ca73d9b7e2c2c90539139cbdd6 \ + --hash=sha256:878ca6a931ee8c486a8f7b432b65431d095c522cbeb34892bee5be97b3481d0f \ + --hash=sha256:8d6a14a4d93b5b3c2891fca94fa9d41b2322a68194422bef0dd5ec1e57d7d298 \ + --hash=sha256:9208299251370ee815473270c52cd3f7069ee9ed348d941d574d1457d2c73e8b \ + --hash=sha256:968b8fb2a5eee2770eda9c7b5581587ef9b96fbdf8dcabc6b446d35ccc69df01 \ + --hash=sha256:971aa438a29701d4b34e4943e91b5e984c3ae6ccbf80dd9efaffb01bd0b243a9 \ + --hash=sha256:9a309c5de392dfe0f32ee57fa43ed8fc6ddf9985425e84bd51ed66bb16bce3a7 \ + --hash=sha256:9bc50b63648840854e00084c2b43035a62e033cb9b06d8c22b409d56eb098413 \ + --hash=sha256:9c6e0ffd52c929f985c7258f83185d17c76d4275ad22e90aa29f38e211aacbec \ + --hash=sha256:9dc2b8f3dcab2e39e0fa309c8da50c3b55e6f34ab25f1a71d3288f24924d33a7 \ + --hash=sha256:9ec1628180241d906a0840b38f162a3215114b14541f1a8711c368a8739a9be4 \ + --hash=sha256:a919c8957695ea4c0e7a3e8d16494e3477b86f33067478f43106921c2fef15bb \ + --hash=sha256:aa93063d4af05c49276cf14e419550a3f45258b6b9d1f16403e777f1addf4519 \ + --hash=sha256:aad3cd91d484d065ede16f3cf15408254e2469e3f613b241a1db552c5eb7ab7d \ + --hash=sha256:b3e70f24e7d0405be2348da9d5a7836936bf3a9b4fd210f8c37e8d48bc32eca6 \ + --hash=sha256:b5e29706e6389a2283a91611c91bf24f218962717c8f3b4e528ef529d112ee27 \ + --hash=sha256:bbde2ca67230923a42161b1f408c3992ae6e0be782dca0c44cb3206bf330dee1 \ + --hash=sha256:bc6f1ab987a27b83c5268a17218463c2ec08dbb754195113867a27b166cd6087 \ + --hash=sha256:bcaf2d79104d53d4dcf934f7ce76d3d155302d07dae24dff6c9fffd217568067 \ + --hash=sha256:c13ed0c779911c7998a58e7848954bd4d63df3e3575f591e321b19a2aec8df9f \ + --hash=sha256:c2f746a6968c54ab2186574e15c3f14f3e7f67aef12b761e043b33b89c5b5f95 \ + --hash=sha256:c73c4d3dae0b4644bc21e3de546530531d6cdc88659cdeb6579cd627d3c206aa \ + --hash=sha256:c891011e76041e6508cbfc469dd1a8ea09bc24e87e4c204e05f150c4c455a5fa \ + --hash=sha256:ca117819d8ad113413016cb29774b3f6d99ad23c220069789fc050267b786c16 \ + --hash=sha256:cdc493a2e5d8dc79b2df5bec9558425bcd39aff59fc949810cbd0832e294b106 \ + --hash=sha256:d110cabad8360ffa0dec8f6ec60e43286e9d251e77db4763a87dcfe55b4adb92 \ + --hash=sha256:d97187de3c276263db3564bb9d9fad9e15b51ea10a371ffa5947a5ba93ad6777 \ + --hash=sha256:db9503f79e12d5d80b3efd4d01312853565c05367493379df76d2674af881caa \ + --hash=sha256:deef4362af9493d1382ef86732ee2e4cbc0d7c005947bd54ad1a9a16dd59298e \ + --hash=sha256:e0099c7d5d7afff4202a0c670e5b723f7718810000b4abcbc96b064129e64bc7 \ + --hash=sha256:e12eb3f4b1f72aaaf6acd27d045753b18101524f72ae071ae1c91c1cd44ef115 \ + --hash=sha256:e1ffa713d3ea7cdcd4aea9cddccab41edf6882fa9552940344c44e59652e1120 \ + --hash=sha256:e5358addc8044ee49143c546d2182c15b4ac3a60be01c3209374ace05af5733d \ + --hash=sha256:ea9b3bab329aeaa603ed3bf605f1e2a6f36496ad7e0e1aa42025f368ee2dc07b \ + --hash=sha256:f14ebc419a568c2eff3c1ed35f634435c24ead2fe19c07426af41e7adb68713a \ + --hash=sha256:f34b97e4b11b8d4eb2c3a4f975be626cc8af99ff479da7de49ac2c6d02d35725 \ + --hash=sha256:f4df4b8ca97f658c880fb4b90b1d1ec528315d4030af1ec763247ebfd33d8b9a \ + --hash=sha256:f65267266c9aeb2287a6622ee2bb39490292552f9fbf851baabc04c9f84e048d \ + --hash=sha256:f6c6dec398ac5a87cb3a407b068e1106b20ef001c344e34154616183fe684288 \ + --hash=sha256:f9b615d3da0d60e7d53c62e22b4fd1c70f4ae5993a44687b011ea3a2e49051b8 \ + --hash=sha256:f9f92a344c50b9667827da308473005f34767b6a2a60d9acff56ae94f895f385 \ + --hash=sha256:fb8601394d537da9221947b5d6e62b064c9a43e88a1ecd7414d21a1a6fba9c24 \ + --hash=sha256:fc31820cfc3b2863c6e95e14fcf815dc7afe52480b4dc03393c4873bb5599f71 \ + --hash=sha256:fdf6429f0caabfd8a30c4e2eaecb547b3c340e4730ebfe25139779b9815ba138 \ + --hash=sha256:ffbfde2443696345e23a3c597049b1dd43049bb65337837574205e7368472177 + # via -r requirements.in +aiosignal==1.3.1 \ + --hash=sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc \ + --hash=sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17 # via aiohttp attrs==19.3.0 \ --hash=sha256:08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c \ - --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 \ - # via aiohttp -chardet==3.0.4 \ - --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae \ - --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 \ + --hash=sha256:f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72 # via aiohttp +frozenlist==1.5.0 \ + --hash=sha256:000a77d6034fbad9b6bb880f7ec073027908f1b40254b5d6f26210d2dab1240e \ + --hash=sha256:03d33c2ddbc1816237a67f66336616416e2bbb6beb306e5f890f2eb22b959cdf \ + --hash=sha256:04a5c6babd5e8fb7d3c871dc8b321166b80e41b637c31a995ed844a6139942b6 \ + --hash=sha256:0996c66760924da6e88922756d99b47512a71cfd45215f3570bf1e0b694c206a \ + --hash=sha256:0cc974cc93d32c42e7b0f6cf242a6bd941c57c61b618e78b6c0a96cb72788c1d \ + --hash=sha256:0f253985bb515ecd89629db13cb58d702035ecd8cfbca7d7a7e29a0e6d39af5f \ + --hash=sha256:11aabdd62b8b9c4b84081a3c246506d1cddd2dd93ff0ad53ede5defec7886b28 \ + --hash=sha256:12f78f98c2f1c2429d42e6a485f433722b0061d5c0b0139efa64f396efb5886b \ + --hash=sha256:140228863501b44b809fb39ec56b5d4071f4d0aa6d216c19cbb08b8c5a7eadb9 \ + --hash=sha256:1431d60b36d15cda188ea222033eec8e0eab488f39a272461f2e6d9e1a8e63c2 \ + --hash=sha256:15538c0cbf0e4fa11d1e3a71f823524b0c46299aed6e10ebb4c2089abd8c3bec \ + --hash=sha256:15b731db116ab3aedec558573c1a5eec78822b32292fe4f2f0345b7f697745c2 \ + --hash=sha256:17dcc32fc7bda7ce5875435003220a457bcfa34ab7924a49a1c19f55b6ee185c \ + --hash=sha256:1893f948bf6681733aaccf36c5232c231e3b5166d607c5fa77773611df6dc336 \ + --hash=sha256:189f03b53e64144f90990d29a27ec4f7997d91ed3d01b51fa39d2dbe77540fd4 \ + --hash=sha256:1a8ea951bbb6cacd492e3948b8da8c502a3f814f5d20935aae74b5df2b19cf3d \ + --hash=sha256:1b96af8c582b94d381a1c1f51ffaedeb77c821c690ea5f01da3d70a487dd0a9b \ + --hash=sha256:1e76bfbc72353269c44e0bc2cfe171900fbf7f722ad74c9a7b638052afe6a00c \ + --hash=sha256:2150cc6305a2c2ab33299453e2968611dacb970d2283a14955923062c8d00b10 \ + --hash=sha256:226d72559fa19babe2ccd920273e767c96a49b9d3d38badd7c91a0fdeda8ea08 \ + --hash=sha256:237f6b23ee0f44066219dae14c70ae38a63f0440ce6750f868ee08775073f942 \ + --hash=sha256:29d94c256679247b33a3dc96cce0f93cbc69c23bf75ff715919332fdbb6a32b8 \ + --hash=sha256:2b5e23253bb709ef57a8e95e6ae48daa9ac5f265637529e4ce6b003a37b2621f \ + --hash=sha256:2d0da8bbec082bf6bf18345b180958775363588678f64998c2b7609e34719b10 \ + --hash=sha256:2f3f7a0fbc219fb4455264cae4d9f01ad41ae6ee8524500f381de64ffaa077d5 \ + --hash=sha256:30c72000fbcc35b129cb09956836c7d7abf78ab5416595e4857d1cae8d6251a6 \ + --hash=sha256:31115ba75889723431aa9a4e77d5f398f5cf976eea3bdf61749731f62d4a4a21 \ + --hash=sha256:31a9ac2b38ab9b5a8933b693db4939764ad3f299fcaa931a3e605bc3460e693c \ + --hash=sha256:366d8f93e3edfe5a918c874702f78faac300209a4d5bf38352b2c1bdc07a766d \ + --hash=sha256:374ca2dabdccad8e2a76d40b1d037f5bd16824933bf7bcea3e59c891fd4a0923 \ + --hash=sha256:44c49271a937625619e862baacbd037a7ef86dd1ee215afc298a417ff3270608 \ + --hash=sha256:45e0896250900b5aa25180f9aec243e84e92ac84bd4a74d9ad4138ef3f5c97de \ + --hash=sha256:498524025a5b8ba81695761d78c8dd7382ac0b052f34e66939c42df860b8ff17 \ + --hash=sha256:50cf5e7ee9b98f22bdecbabf3800ae78ddcc26e4a435515fc72d97903e8488e0 \ + --hash=sha256:52ef692a4bc60a6dd57f507429636c2af8b6046db8b31b18dac02cbc8f507f7f \ + --hash=sha256:561eb1c9579d495fddb6da8959fd2a1fca2c6d060d4113f5844b433fc02f2641 \ + --hash=sha256:5a3ba5f9a0dfed20337d3e966dc359784c9f96503674c2faf015f7fe8e96798c \ + --hash=sha256:5b6a66c18b5b9dd261ca98dffcb826a525334b2f29e7caa54e182255c5f6a65a \ + --hash=sha256:5c28f4b5dbef8a0d8aad0d4de24d1e9e981728628afaf4ea0792f5d0939372f0 \ + --hash=sha256:5d7f5a50342475962eb18b740f3beecc685a15b52c91f7d975257e13e029eca9 \ + --hash=sha256:6321899477db90bdeb9299ac3627a6a53c7399c8cd58d25da094007402b039ab \ + --hash=sha256:6482a5851f5d72767fbd0e507e80737f9c8646ae7fd303def99bfe813f76cf7f \ + --hash=sha256:666534d15ba8f0fda3f53969117383d5dc021266b3c1a42c9ec4855e4b58b9d3 \ + --hash=sha256:683173d371daad49cffb8309779e886e59c2f369430ad28fe715f66d08d4ab1a \ + --hash=sha256:6e9080bb2fb195a046e5177f10d9d82b8a204c0736a97a153c2466127de87784 \ + --hash=sha256:73f2e31ea8dd7df61a359b731716018c2be196e5bb3b74ddba107f694fbd7604 \ + --hash=sha256:7437601c4d89d070eac8323f121fcf25f88674627505334654fd027b091db09d \ + --hash=sha256:76e4753701248476e6286f2ef492af900ea67d9706a0155335a40ea21bf3b2f5 \ + --hash=sha256:7707a25d6a77f5d27ea7dc7d1fc608aa0a478193823f88511ef5e6b8a48f9d03 \ + --hash=sha256:7948140d9f8ece1745be806f2bfdf390127cf1a763b925c4a805c603df5e697e \ + --hash=sha256:7a1a048f9215c90973402e26c01d1cff8a209e1f1b53f72b95c13db61b00f953 \ + --hash=sha256:7d57d8f702221405a9d9b40f9da8ac2e4a1a8b5285aac6100f3393675f0a85ee \ + --hash=sha256:7f3c8c1dacd037df16e85227bac13cca58c30da836c6f936ba1df0c05d046d8d \ + --hash=sha256:81d5af29e61b9c8348e876d442253723928dce6433e0e76cd925cd83f1b4b817 \ + --hash=sha256:828afae9f17e6de596825cf4228ff28fbdf6065974e5ac1410cecc22f699d2b3 \ + --hash=sha256:87f724d055eb4785d9be84e9ebf0f24e392ddfad00b3fe036e43f489fafc9039 \ + --hash=sha256:8969190d709e7c48ea386db202d708eb94bdb29207a1f269bab1196ce0dcca1f \ + --hash=sha256:90646abbc7a5d5c7c19461d2e3eeb76eb0b204919e6ece342feb6032c9325ae9 \ + --hash=sha256:91d6c171862df0a6c61479d9724f22efb6109111017c87567cfeb7b5d1449fdf \ + --hash=sha256:9272fa73ca71266702c4c3e2d4a28553ea03418e591e377a03b8e3659d94fa76 \ + --hash=sha256:92b5278ed9d50fe610185ecd23c55d8b307d75ca18e94c0e7de328089ac5dcba \ + --hash=sha256:97160e245ea33d8609cd2b8fd997c850b56db147a304a262abc2b3be021a9171 \ + --hash=sha256:977701c081c0241d0955c9586ffdd9ce44f7a7795df39b9151cd9a6fd0ce4cfb \ + --hash=sha256:9b7dc0c4338e6b8b091e8faf0db3168a37101943e687f373dce00959583f7439 \ + --hash=sha256:9b93d7aaa36c966fa42efcaf716e6b3900438632a626fb09c049f6a2f09fc631 \ + --hash=sha256:9bbcdfaf4af7ce002694a4e10a0159d5a8d20056a12b05b45cea944a4953f972 \ + --hash=sha256:9c2623347b933fcb9095841f1cc5d4ff0b278addd743e0e966cb3d460278840d \ + --hash=sha256:a2fe128eb4edeabe11896cb6af88fca5346059f6c8d807e3b910069f39157869 \ + --hash=sha256:a72b7a6e3cd2725eff67cd64c8f13335ee18fc3c7befc05aed043d24c7b9ccb9 \ + --hash=sha256:a9fe0f1c29ba24ba6ff6abf688cb0b7cf1efab6b6aa6adc55441773c252f7411 \ + --hash=sha256:b97f7b575ab4a8af9b7bc1d2ef7f29d3afee2226bd03ca3875c16451ad5a7723 \ + --hash=sha256:bdac3c7d9b705d253b2ce370fde941836a5f8b3c5c2b8fd70940a3ea3af7f4f2 \ + --hash=sha256:c03eff4a41bd4e38415cbed054bbaff4a075b093e2394b6915dca34a40d1e38b \ + --hash=sha256:c16d2fa63e0800723139137d667e1056bee1a1cf7965153d2d104b62855e9b99 \ + --hash=sha256:c1fac3e2ace2eb1052e9f7c7db480818371134410e1f5c55d65e8f3ac6d1407e \ + --hash=sha256:ce3aa154c452d2467487765e3adc730a8c153af77ad84096bc19ce19a2400840 \ + --hash=sha256:cee6798eaf8b1416ef6909b06f7dc04b60755206bddc599f52232606e18179d3 \ + --hash=sha256:d1b3eb7b05ea246510b43a7e53ed1653e55c2121019a97e60cad7efb881a97bb \ + --hash=sha256:d994863bba198a4a518b467bb971c56e1db3f180a25c6cf7bb1949c267f748c3 \ + --hash=sha256:dd47a5181ce5fcb463b5d9e17ecfdb02b678cca31280639255ce9d0e5aa67af0 \ + --hash=sha256:dd94994fc91a6177bfaafd7d9fd951bc8689b0a98168aa26b5f543868548d3ca \ + --hash=sha256:de537c11e4aa01d37db0d403b57bd6f0546e71a82347a97c6a9f0dcc532b3a45 \ + --hash=sha256:df6e2f325bfee1f49f81aaac97d2aa757c7646534a06f8f577ce184afe2f0a9e \ + --hash=sha256:e66cc454f97053b79c2ab09c17fbe3c825ea6b4de20baf1be28919460dd7877f \ + --hash=sha256:e79225373c317ff1e35f210dd5f1344ff31066ba8067c307ab60254cd3a78ad5 \ + --hash=sha256:f1577515d35ed5649d52ab4319db757bb881ce3b2b796d7283e6634d99ace307 \ + --hash=sha256:f1e6540b7fa044eee0bb5111ada694cf3dc15f2b0347ca125ee9ca984d5e9e6e \ + --hash=sha256:f2ac49a9bedb996086057b75bf93538240538c6d9b38e57c82d51f75a73409d2 \ + --hash=sha256:f47c9c9028f55a04ac254346e92977bf0f166c483c74b4232bee19a6697e4778 \ + --hash=sha256:f5f9da7f5dbc00a604fe74aa02ae7c98bcede8a3b8b9666f9f86fc13993bc71a \ + --hash=sha256:fd74520371c3c4175142d02a976aee0b4cb4a7cc912a60586ffd8d5929979b30 \ + --hash=sha256:feeb64bc9bcc6b45c6311c9e9b99406660a9c05ca8a5b30d14a78555088b0b3a + # via + # aiohttp + # aiosignal gidgethub==3.3.0 \ --hash=sha256:3692d2df48a23c87ec4a5e74053ce343bc59cea7c34488a9136754a35aeb177a \ --hash=sha256:4a456758a5fc8bfd581f297df90f2d09efbb830ccd209b1ceba4723705607d70 -idna-ssl==1.1.0 \ - --hash=sha256:a933e3bb13da54383f9e8f35dc4f9cb9eb9b3b78c6b36f311254d6d0d92c6c7c \ - # via aiohttp + # via -r requirements.in idna==2.8 \ --hash=sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407 \ - --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c \ - # via idna-ssl, yarl + --hash=sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c + # via yarl multidict==4.7.4 \ --hash=sha256:13f3ebdb5693944f52faa7b2065b751cb7e578b8dd0a5bb8e4ab05ad0188b85e \ --hash=sha256:26502cefa86d79b86752e96639352c7247846515c864d7c2eb85d036752b643c \ @@ -56,33 +230,195 @@ multidict==4.7.4 \ --hash=sha256:a8ed33e8f9b67e3b592c56567135bb42e7e0e97417a4b6a771e60898dfd5182b \ --hash=sha256:d7d428488c67b09b26928950a395e41cc72bb9c3d5abfe9f0521940ee4f796d4 \ --hash=sha256:dcfed56aa085b89d644af17442cdc2debaa73388feba4b8026446d168ca8dad7 \ - --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 \ - # via aiohttp, yarl -typing-extensions==3.7.4.1 \ - --hash=sha256:091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2 \ - --hash=sha256:910f4656f54de5993ad9304959ce9bb903f90aadc7c67a0bef07e678014e892d \ - --hash=sha256:cf8b63fedea4d89bab840ecbb93e75578af28f76f66c35889bd7065f5af88575 \ - # via aiohttp + --hash=sha256:f29b885e4903bd57a7789f09fe9d60b6475a6c1a4c0eca874d8558f00f9d4b51 + # via + # aiohttp + # yarl +propcache==0.2.0 \ + --hash=sha256:00181262b17e517df2cd85656fcd6b4e70946fe62cd625b9d74ac9977b64d8d9 \ + --hash=sha256:0e53cb83fdd61cbd67202735e6a6687a7b491c8742dfc39c9e01e80354956763 \ + --hash=sha256:1235c01ddaa80da8235741e80815ce381c5267f96cc49b1477fdcf8c047ef325 \ + --hash=sha256:140fbf08ab3588b3468932974a9331aff43c0ab8a2ec2c608b6d7d1756dbb6cb \ + --hash=sha256:191db28dc6dcd29d1a3e063c3be0b40688ed76434622c53a284e5427565bbd9b \ + --hash=sha256:1e41d67757ff4fbc8ef2af99b338bfb955010444b92929e9e55a6d4dcc3c4f09 \ + --hash=sha256:1ec43d76b9677637a89d6ab86e1fef70d739217fefa208c65352ecf0282be957 \ + --hash=sha256:20a617c776f520c3875cf4511e0d1db847a076d720714ae35ffe0df3e440be68 \ + --hash=sha256:218db2a3c297a3768c11a34812e63b3ac1c3234c3a086def9c0fee50d35add1f \ + --hash=sha256:22aa8f2272d81d9317ff5756bb108021a056805ce63dd3630e27d042c8092798 \ + --hash=sha256:25a1f88b471b3bc911d18b935ecb7115dff3a192b6fef46f0bfaf71ff4f12418 \ + --hash=sha256:25c8d773a62ce0451b020c7b29a35cfbc05de8b291163a7a0f3b7904f27253e6 \ + --hash=sha256:2a60ad3e2553a74168d275a0ef35e8c0a965448ffbc3b300ab3a5bb9956c2162 \ + --hash=sha256:2a66df3d4992bc1d725b9aa803e8c5a66c010c65c741ad901e260ece77f58d2f \ + --hash=sha256:2ccc28197af5313706511fab3a8b66dcd6da067a1331372c82ea1cb74285e036 \ + --hash=sha256:2e900bad2a8456d00a113cad8c13343f3b1f327534e3589acc2219729237a2e8 \ + --hash=sha256:2ee7606193fb267be4b2e3b32714f2d58cad27217638db98a60f9efb5efeccc2 \ + --hash=sha256:33ac8f098df0585c0b53009f039dfd913b38c1d2edafed0cedcc0c32a05aa110 \ + --hash=sha256:3444cdba6628accf384e349014084b1cacd866fbb88433cd9d279d90a54e0b23 \ + --hash=sha256:363ea8cd3c5cb6679f1c2f5f1f9669587361c062e4899fce56758efa928728f8 \ + --hash=sha256:375a12d7556d462dc64d70475a9ee5982465fbb3d2b364f16b86ba9135793638 \ + --hash=sha256:388f3217649d6d59292b722d940d4d2e1e6a7003259eb835724092a1cca0203a \ + --hash=sha256:3947483a381259c06921612550867b37d22e1df6d6d7e8361264b6d037595f44 \ + --hash=sha256:39e104da444a34830751715f45ef9fc537475ba21b7f1f5b0f4d71a3b60d7fe2 \ + --hash=sha256:3c997f8c44ec9b9b0bcbf2d422cc00a1d9b9c681f56efa6ca149a941e5560da2 \ + --hash=sha256:3dfafb44f7bb35c0c06eda6b2ab4bfd58f02729e7c4045e179f9a861b07c9850 \ + --hash=sha256:3ebbcf2a07621f29638799828b8d8668c421bfb94c6cb04269130d8de4fb7136 \ + --hash=sha256:3f88a4095e913f98988f5b338c1d4d5d07dbb0b6bad19892fd447484e483ba6b \ + --hash=sha256:439e76255daa0f8151d3cb325f6dd4a3e93043e6403e6491813bcaaaa8733887 \ + --hash=sha256:4569158070180c3855e9c0791c56be3ceeb192defa2cdf6a3f39e54319e56b89 \ + --hash=sha256:466c219deee4536fbc83c08d09115249db301550625c7fef1c5563a584c9bc87 \ + --hash=sha256:4a9d9b4d0a9b38d1c391bb4ad24aa65f306c6f01b512e10a8a34a2dc5675d348 \ + --hash=sha256:4c7dde9e533c0a49d802b4f3f218fa9ad0a1ce21f2c2eb80d5216565202acab4 \ + --hash=sha256:53d1bd3f979ed529f0805dd35ddaca330f80a9a6d90bc0121d2ff398f8ed8861 \ + --hash=sha256:55346705687dbd7ef0d77883ab4f6fabc48232f587925bdaf95219bae072491e \ + --hash=sha256:56295eb1e5f3aecd516d91b00cfd8bf3a13991de5a479df9e27dd569ea23959c \ + --hash=sha256:56bb5c98f058a41bb58eead194b4db8c05b088c93d94d5161728515bd52b052b \ + --hash=sha256:5a5b3bb545ead161be780ee85a2b54fdf7092815995661947812dde94a40f6fb \ + --hash=sha256:5f2564ec89058ee7c7989a7b719115bdfe2a2fb8e7a4543b8d1c0cc4cf6478c1 \ + --hash=sha256:608cce1da6f2672a56b24a015b42db4ac612ee709f3d29f27a00c943d9e851de \ + --hash=sha256:63f13bf09cc3336eb04a837490b8f332e0db41da66995c9fd1ba04552e516354 \ + --hash=sha256:662dd62358bdeaca0aee5761de8727cfd6861432e3bb828dc2a693aa0471a563 \ + --hash=sha256:676135dcf3262c9c5081cc8f19ad55c8a64e3f7282a21266d05544450bffc3a5 \ + --hash=sha256:67aeb72e0f482709991aa91345a831d0b707d16b0257e8ef88a2ad246a7280bf \ + --hash=sha256:67b69535c870670c9f9b14a75d28baa32221d06f6b6fa6f77a0a13c5a7b0a5b9 \ + --hash=sha256:682a7c79a2fbf40f5dbb1eb6bfe2cd865376deeac65acf9beb607505dced9e12 \ + --hash=sha256:6994984550eaf25dd7fc7bd1b700ff45c894149341725bb4edc67f0ffa94efa4 \ + --hash=sha256:69d3a98eebae99a420d4b28756c8ce6ea5a29291baf2dc9ff9414b42676f61d5 \ + --hash=sha256:6e2e54267980349b723cff366d1e29b138b9a60fa376664a157a342689553f71 \ + --hash=sha256:73e4b40ea0eda421b115248d7e79b59214411109a5bc47d0d48e4c73e3b8fcf9 \ + --hash=sha256:74acd6e291f885678631b7ebc85d2d4aec458dd849b8c841b57ef04047833bed \ + --hash=sha256:7665f04d0c7f26ff8bb534e1c65068409bf4687aa2534faf7104d7182debb336 \ + --hash=sha256:7735e82e3498c27bcb2d17cb65d62c14f1100b71723b68362872bca7d0913d90 \ + --hash=sha256:77a86c261679ea5f3896ec060be9dc8e365788248cc1e049632a1be682442063 \ + --hash=sha256:7cf18abf9764746b9c8704774d8b06714bcb0a63641518a3a89c7f85cc02c2ad \ + --hash=sha256:83928404adf8fb3d26793665633ea79b7361efa0287dfbd372a7e74311d51ee6 \ + --hash=sha256:8e40876731f99b6f3c897b66b803c9e1c07a989b366c6b5b475fafd1f7ba3fb8 \ + --hash=sha256:8f188cfcc64fb1266f4684206c9de0e80f54622c3f22a910cbd200478aeae61e \ + --hash=sha256:91997d9cb4a325b60d4e3f20967f8eb08dfcb32b22554d5ef78e6fd1dda743a2 \ + --hash=sha256:91ee8fc02ca52e24bcb77b234f22afc03288e1dafbb1f88fe24db308910c4ac7 \ + --hash=sha256:92fe151145a990c22cbccf9ae15cae8ae9eddabfc949a219c9f667877e40853d \ + --hash=sha256:945db8ee295d3af9dbdbb698cce9bbc5c59b5c3fe328bbc4387f59a8a35f998d \ + --hash=sha256:9517d5e9e0731957468c29dbfd0f976736a0e55afaea843726e887f36fe017df \ + --hash=sha256:952e0d9d07609d9c5be361f33b0d6d650cd2bae393aabb11d9b719364521984b \ + --hash=sha256:97a58a28bcf63284e8b4d7b460cbee1edaab24634e82059c7b8c09e65284f178 \ + --hash=sha256:97e48e8875e6c13909c800fa344cd54cc4b2b0db1d5f911f840458a500fde2c2 \ + --hash=sha256:9e0f07b42d2a50c7dd2d8675d50f7343d998c64008f1da5fef888396b7f84630 \ + --hash=sha256:a3dc1a4b165283bd865e8f8cb5f0c64c05001e0718ed06250d8cac9bec115b48 \ + --hash=sha256:a3ebe9a75be7ab0b7da2464a77bb27febcb4fab46a34f9288f39d74833db7f61 \ + --hash=sha256:a64e32f8bd94c105cc27f42d3b658902b5bcc947ece3c8fe7bc1b05982f60e89 \ + --hash=sha256:a6ed8db0a556343d566a5c124ee483ae113acc9a557a807d439bcecc44e7dfbb \ + --hash=sha256:ad9c9b99b05f163109466638bd30ada1722abb01bbb85c739c50b6dc11f92dc3 \ + --hash=sha256:b33d7a286c0dc1a15f5fc864cc48ae92a846df287ceac2dd499926c3801054a6 \ + --hash=sha256:bc092ba439d91df90aea38168e11f75c655880c12782facf5cf9c00f3d42b562 \ + --hash=sha256:c436130cc779806bdf5d5fae0d848713105472b8566b75ff70048c47d3961c5b \ + --hash=sha256:c5869b8fd70b81835a6f187c5fdbe67917a04d7e52b6e7cc4e5fe39d55c39d58 \ + --hash=sha256:c5ecca8f9bab618340c8e848d340baf68bcd8ad90a8ecd7a4524a81c1764b3db \ + --hash=sha256:cfac69017ef97db2438efb854edf24f5a29fd09a536ff3a992b75990720cdc99 \ + --hash=sha256:d2f0d0f976985f85dfb5f3d685697ef769faa6b71993b46b295cdbbd6be8cc37 \ + --hash=sha256:d5bed7f9805cc29c780f3aee05de3262ee7ce1f47083cfe9f77471e9d6777e83 \ + --hash=sha256:d6a21ef516d36909931a2967621eecb256018aeb11fc48656e3257e73e2e247a \ + --hash=sha256:d9b6ddac6408194e934002a69bcaadbc88c10b5f38fb9307779d1c629181815d \ + --hash=sha256:db47514ffdbd91ccdc7e6f8407aac4ee94cc871b15b577c1c324236b013ddd04 \ + --hash=sha256:df81779732feb9d01e5d513fad0122efb3d53bbc75f61b2a4f29a020bc985e70 \ + --hash=sha256:e4a91d44379f45f5e540971d41e4626dacd7f01004826a18cb048e7da7e96544 \ + --hash=sha256:e63e3e1e0271f374ed489ff5ee73d4b6e7c60710e1f76af5f0e1a6117cd26394 \ + --hash=sha256:e70fac33e8b4ac63dfc4c956fd7d85a0b1139adcfc0d964ce288b7c527537fea \ + --hash=sha256:ecddc221a077a8132cf7c747d5352a15ed763b674c0448d811f408bf803d9ad7 \ + --hash=sha256:f45eec587dafd4b2d41ac189c2156461ebd0c1082d2fe7013571598abb8505d1 \ + --hash=sha256:f52a68c21363c45297aca15561812d542f8fc683c85201df0bebe209e349f793 \ + --hash=sha256:f571aea50ba5623c308aa146eb650eebf7dbe0fd8c5d946e28343cb3b5aad577 \ + --hash=sha256:f60f0ac7005b9f5a6091009b09a419ace1610e163fa5deaba5ce3484341840e7 \ + --hash=sha256:f6475a1b2ecb310c98c28d271a30df74f9dd436ee46d09236a6b750a7599ce57 \ + --hash=sha256:f6d5749fdd33d90e34c2efb174c7e236829147a2713334d708746e94c4bde40d \ + --hash=sha256:f902804113e032e2cdf8c71015651c97af6418363bea8d78dc0911d56c335032 \ + --hash=sha256:fa1076244f54bb76e65e22cb6910365779d5c3d71d1f18b275f1dfc7b0d71b4d \ + --hash=sha256:fc2db02409338bf36590aa985a461b2c96fce91f8e7e0f14c50c5fcc4f229016 \ + --hash=sha256:ffcad6c564fe6b9b8916c1aefbb37a362deebf9394bd2974e9d84232e3e08504 + # via yarl uritemplate==3.0.1 \ --hash=sha256:07620c3f3f8eed1f12600845892b0e036a2420acf513c53f7de0abd911a5894f \ - --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae \ + --hash=sha256:5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae # via gidgethub -yarl==1.4.2 \ - --hash=sha256:0c2ab325d33f1b824734b3ef51d4d54a54e0e7a23d13b86974507602334c2cce \ - --hash=sha256:0ca2f395591bbd85ddd50a82eb1fde9c1066fafe888c5c7cc1d810cf03fd3cc6 \ - --hash=sha256:2098a4b4b9d75ee352807a95cdf5f10180db903bc5b7270715c6bbe2551f64ce \ - --hash=sha256:25e66e5e2007c7a39541ca13b559cd8ebc2ad8fe00ea94a2aad28a9b1e44e5ae \ - --hash=sha256:26d7c90cb04dee1665282a5d1a998defc1a9e012fdca0f33396f81508f49696d \ - --hash=sha256:308b98b0c8cd1dfef1a0311dc5e38ae8f9b58349226aa0533f15a16717ad702f \ - --hash=sha256:3ce3d4f7c6b69c4e4f0704b32eca8123b9c58ae91af740481aa57d7857b5e41b \ - --hash=sha256:58cd9c469eced558cd81aa3f484b2924e8897049e06889e8ff2510435b7ef74b \ - --hash=sha256:5b10eb0e7f044cf0b035112446b26a3a2946bca9d7d7edb5e54a2ad2f6652abb \ - --hash=sha256:6faa19d3824c21bcbfdfce5171e193c8b4ddafdf0ac3f129ccf0cdfcb083e462 \ - --hash=sha256:944494be42fa630134bf907714d40207e646fd5a94423c90d5b514f7b0713fea \ - --hash=sha256:a161de7e50224e8e3de6e184707476b5a989037dcb24292b391a3d66ff158e70 \ - --hash=sha256:a4844ebb2be14768f7994f2017f70aca39d658a96c786211be5ddbe1c68794c1 \ - --hash=sha256:c2b509ac3d4b988ae8769901c66345425e361d518aecbe4acbfc2567e416626a \ - --hash=sha256:c9959d49a77b0e07559e579f38b2f3711c2b8716b8410b320bf9713013215a1b \ - --hash=sha256:d8cdee92bc930d8b09d8bd2043cedd544d9c8bd7436a77678dd602467a993080 \ - --hash=sha256:e15199cdb423316e15f108f51249e44eb156ae5dba232cb73be555324a1d49c2 \ +yarl==1.17.2 \ + --hash=sha256:0c8e589379ef0407b10bed16cc26e7392ef8f86961a706ade0a22309a45414d7 \ + --hash=sha256:0d41c684f286ce41fa05ab6af70f32d6da1b6f0457459a56cf9e393c1c0b2217 \ + --hash=sha256:1056cadd5e850a1c026f28e0704ab0a94daaa8f887ece8dfed30f88befb87bb0 \ + --hash=sha256:11d86c6145ac5c706c53d484784cf504d7d10fa407cb73b9d20f09ff986059ef \ + --hash=sha256:170ed4971bf9058582b01a8338605f4d8c849bd88834061e60e83b52d0c76870 \ + --hash=sha256:17791acaa0c0f89323c57da7b9a79f2174e26d5debbc8c02d84ebd80c2b7bff8 \ + --hash=sha256:17931dfbb84ae18b287279c1f92b76a3abcd9a49cd69b92e946035cff06bcd20 \ + --hash=sha256:18662443c6c3707e2fc7fad184b4dc32dd428710bbe72e1bce7fe1988d4aa654 \ + --hash=sha256:187df91395c11e9f9dc69b38d12406df85aa5865f1766a47907b1cc9855b6303 \ + --hash=sha256:1fee66b32e79264f428dc8da18396ad59cc48eef3c9c13844adec890cd339db5 \ + --hash=sha256:2270d590997445a0dc29afa92e5534bfea76ba3aea026289e811bf9ed4b65a7f \ + --hash=sha256:2654caaf5584449d49c94a6b382b3cb4a246c090e72453493ea168b931206a4d \ + --hash=sha256:26bfb6226e0c157af5da16d2d62258f1ac578d2899130a50433ffee4a5dfa673 \ + --hash=sha256:2941756754a10e799e5b87e2319bbec481ed0957421fba0e7b9fb1c11e40509f \ + --hash=sha256:3294f787a437cb5d81846de3a6697f0c35ecff37a932d73b1fe62490bef69211 \ + --hash=sha256:358dc7ddf25e79e1cc8ee16d970c23faee84d532b873519c5036dbb858965795 \ + --hash=sha256:38bc4ed5cae853409cb193c87c86cd0bc8d3a70fd2268a9807217b9176093ac6 \ + --hash=sha256:3a0baff7827a632204060f48dca9e63fbd6a5a0b8790c1a2adfb25dc2c9c0d50 \ + --hash=sha256:3a3ede8c248f36b60227eb777eac1dbc2f1022dc4d741b177c4379ca8e75571a \ + --hash=sha256:3a58a2f2ca7aaf22b265388d40232f453f67a6def7355a840b98c2d547bd037f \ + --hash=sha256:4434b739a8a101a837caeaa0137e0e38cb4ea561f39cb8960f3b1e7f4967a3fc \ + --hash=sha256:460024cacfc3246cc4d9f47a7fc860e4fcea7d1dc651e1256510d8c3c9c7cde0 \ + --hash=sha256:46c465ad06971abcf46dd532f77560181387b4eea59084434bdff97524444032 \ + --hash=sha256:48e424347a45568413deec6f6ee2d720de2cc0385019bedf44cd93e8638aa0ed \ + --hash=sha256:4a8c83f6fcdc327783bdc737e8e45b2e909b7bd108c4da1892d3bc59c04a6d84 \ + --hash=sha256:4c840cc11163d3c01a9d8aad227683c48cd3e5be5a785921bcc2a8b4b758c4f3 \ + --hash=sha256:4d486ddcaca8c68455aa01cf53d28d413fb41a35afc9f6594a730c9779545876 \ + --hash=sha256:4e76381be3d8ff96a4e6c77815653063e87555981329cf8f85e5be5abf449021 \ + --hash=sha256:50d866f7b1a3f16f98603e095f24c0eeba25eb508c85a2c5939c8b3870ba2df8 \ + --hash=sha256:52492b87d5877ec405542f43cd3da80bdcb2d0c2fbc73236526e5f2c28e6db28 \ + --hash=sha256:56afb44a12b0864d17b597210d63a5b88915d680f6484d8d202ed68ade38673d \ + --hash=sha256:585ce7cd97be8f538345de47b279b879e091c8b86d9dbc6d98a96a7ad78876a3 \ + --hash=sha256:5870d620b23b956f72bafed6a0ba9a62edb5f2ef78a8849b7615bd9433384171 \ + --hash=sha256:5c6ea72fe619fee5e6b5d4040a451d45d8175f560b11b3d3e044cd24b2720526 \ + --hash=sha256:688058e89f512fb7541cb85c2f149c292d3fa22f981d5a5453b40c5da49eb9e8 \ + --hash=sha256:6a3f47930fbbed0f6377639503848134c4aa25426b08778d641491131351c2c8 \ + --hash=sha256:6b981316fcd940f085f646b822c2ff2b8b813cbd61281acad229ea3cbaabeb6b \ + --hash=sha256:734144cd2bd633a1516948e477ff6c835041c0536cef1d5b9a823ae29899665b \ + --hash=sha256:736bb076f7299c5c55dfef3eb9e96071a795cb08052822c2bb349b06f4cb2e0a \ + --hash=sha256:752485cbbb50c1e20908450ff4f94217acba9358ebdce0d8106510859d6eb19a \ + --hash=sha256:753eaaa0c7195244c84b5cc159dc8204b7fd99f716f11198f999f2332a86b178 \ + --hash=sha256:75ac158560dec3ed72f6d604c81090ec44529cfb8169b05ae6fcb3e986b325d9 \ + --hash=sha256:76499469dcc24759399accd85ec27f237d52dec300daaca46a5352fcbebb1071 \ + --hash=sha256:782ca9c58f5c491c7afa55518542b2b005caedaf4685ec814fadfcee51f02493 \ + --hash=sha256:792155279dc093839e43f85ff7b9b6493a8eaa0af1f94f1f9c6e8f4de8c63500 \ + --hash=sha256:7a1606ba68e311576bcb1672b2a1543417e7e0aa4c85e9e718ba6466952476c0 \ + --hash=sha256:8281db240a1616af2f9c5f71d355057e73a1409c4648c8949901396dc0a3c151 \ + --hash=sha256:871e1b47eec7b6df76b23c642a81db5dd6536cbef26b7e80e7c56c2fd371382e \ + --hash=sha256:8b9c4643e7d843a0dca9cd9d610a0876e90a1b2cbc4c5ba7930a0d90baf6903f \ + --hash=sha256:8c6d5fed96f0646bfdf698b0a1cebf32b8aae6892d1bec0c5d2d6e2df44e1e2d \ + --hash=sha256:8e1bf59e035534ba4077f5361d8d5d9194149f9ed4f823d1ee29ef3e8964ace3 \ + --hash=sha256:8fd51299e21da709eabcd5b2dd60e39090804431292daacbee8d3dabe39a6bc0 \ + --hash=sha256:91c012dceadc695ccf69301bfdccd1fc4472ad714fe2dd3c5ab4d2046afddf29 \ + --hash=sha256:93771146ef048b34201bfa382c2bf74c524980870bb278e6df515efaf93699ff \ + --hash=sha256:93d1c8cc5bf5df401015c5e2a3ce75a5254a9839e5039c881365d2a9dcfc6dc2 \ + --hash=sha256:9611b83810a74a46be88847e0ea616794c406dbcb4e25405e52bff8f4bee2d0a \ + --hash=sha256:9bc27dd5cfdbe3dc7f381b05e6260ca6da41931a6e582267d5ca540270afeeb2 \ + --hash=sha256:ac8eda86cc75859093e9ce390d423aba968f50cf0e481e6c7d7d63f90bae5c9c \ + --hash=sha256:bc3003710e335e3f842ae3fd78efa55f11a863a89a72e9a07da214db3bf7e1f8 \ + --hash=sha256:bc61b005f6521fcc00ca0d1243559a5850b9dd1e1fe07b891410ee8fe192d0c0 \ + --hash=sha256:be4c7b1c49d9917c6e95258d3d07f43cfba2c69a6929816e77daf322aaba6628 \ + --hash=sha256:c019abc2eca67dfa4d8fb72ba924871d764ec3c92b86d5b53b405ad3d6aa56b0 \ + --hash=sha256:c42774d1d1508ec48c3ed29e7b110e33f5e74a20957ea16197dbcce8be6b52ba \ + --hash=sha256:c556fbc6820b6e2cda1ca675c5fa5589cf188f8da6b33e9fc05b002e603e44fa \ + --hash=sha256:c6e659b9a24d145e271c2faf3fa6dd1fcb3e5d3f4e17273d9e0350b6ab0fe6e2 \ + --hash=sha256:c74f0b0472ac40b04e6d28532f55cac8090e34c3e81f118d12843e6df14d0909 \ + --hash=sha256:cd7e35818d2328b679a13268d9ea505c85cd773572ebb7a0da7ccbca77b6a52e \ + --hash=sha256:d17832ba39374134c10e82d137e372b5f7478c4cceeb19d02ae3e3d1daed8721 \ + --hash=sha256:d1fa68a3c921365c5745b4bd3af6221ae1f0ea1bf04b69e94eda60e57958907f \ + --hash=sha256:d63123bfd0dce5f91101e77c8a5427c3872501acece8c90df457b486bc1acd47 \ + --hash=sha256:da9d3061e61e5ae3f753654813bc1cd1c70e02fb72cf871bd6daf78443e9e2b1 \ + --hash=sha256:db5ac3871ed76340210fe028f535392f097fb31b875354bcb69162bba2632ef4 \ + --hash=sha256:dd7abf4f717e33b7487121faf23560b3a50924f80e4bef62b22dab441ded8f3b \ + --hash=sha256:dd90238d3a77a0e07d4d6ffdebc0c21a9787c5953a508a2231b5f191455f31e9 \ + --hash=sha256:ef6eee1a61638d29cd7c85f7fd3ac7b22b4c0fabc8fd00a712b727a3e73b0685 \ + --hash=sha256:f11fd61d72d93ac23718d393d2a64469af40be2116b24da0a4ca6922df26807e \ + --hash=sha256:f1e7fedb09c059efee2533119666ca7e1a2610072076926fa028c2ba5dfeb78c \ + --hash=sha256:f25b7e93f5414b9a983e1a6c1820142c13e1782cc9ed354c25e933aebe97fcf2 \ + --hash=sha256:f2f44a4247461965fed18b2573f3a9eb5e2c3cad225201ee858726cde610daca \ + --hash=sha256:f5ffc6b7ace5b22d9e73b2a4c7305740a339fbd55301d52735f73e21d9eb3130 \ + --hash=sha256:ff6af03cac0d1a4c3c19e5dcc4c05252411bf44ccaa2485e20d0a7c77892ab6e \ + --hash=sha256:ff8d95e06546c3a8c188f68040e9d0360feb67ba8498baf018918f669f7bc39b # via aiohttp